Bash Single Line For Loop Example

Here is a example of a for each loop in a single line in Bash

# for hi in 1 2 ; do echo $hi; echo "wow"; done;
1
wow
2
wow
#

Comments

Popular posts from this blog

Vim vi how to reload a file your editing