keine Angst vor dem Unix Prompt
keine Angst vor dem Unix Prompt
keine Angst vor dem Unix Prompt
Sie wollen auch ein ePaper? Erhöhen Sie die Reichweite Ihrer Titel.
YUMPU macht aus Druck-PDFs automatisch weboptimierte ePaper, die Google liebt.
xargs<br />
• Problem: ein Programm erzeugt eine Ausgabe, die<br />
ein anderes Programm als Parameter erhalten soll<br />
• Einfachste Lösung:<br />
touch `ls`<br />
• Problem: die Ausgabe ist zu groß, so daß die<br />
Kommandozeile zu lang<br />
ls | xargs touch<br />
• Problem: das Programm unterstützt nur einen<br />
Parameter<br />
ls | xargs -n 1 touch<br />
Shell - <strong>keine</strong> <strong>Angst</strong> <strong>vor</strong> <strong>dem</strong> <strong>Unix</strong> <strong>Prompt</strong> 77