Redirections in Schleifen

In Schleifen vom Typ while („Kontrollstrukturen“), for („Kontrollstrukturen“) und until („Kontrollstrukturen“) erfolgen Redirections erst am Ende des Konstrukts: Gleiches gilt natürlich auch für Ausgaben und Pipelines.

while ... do
...
done < Umleitung

oder:

for ...
...
done > Umleitung

oder:

until ...
...
done |...

Get bash kurz & gut, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.