dTechNotes
Friday, July 3, 2020
How to use bash For Loop In One Line
Just enter below command and will get the magic - below runs
your-script.sh
5 times:
for i in {1..5}; do echo "------------------------ Iteration ".$i." ----------------------"; sh your-script.sh;sleep 3; done
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment