Was: Zeugs. Thema: Alles mögliche.
Bash: Befehl X mal ausfuehren
1 2 3 4 | for i in {1..10} do echo "Welcome $i times!" done |
Falls ich das wieder vergessen sollte. Wichtig: GESCHWUNGENE Klammern!
Nachtrag auf Anfrage:
Der Einzeiler sieht dann so aus:
for i in {1..10}; do echo "Welcome $i times!"; echo "Noch ein Befehl"; done
| Print article | This entry was posted by Manuel on 15.01.2010 at 14:31, and is filed under Linux/Unix. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |