shell one line for loop 1

shell one line for loop

for i in *; do echo $i; done

Here is what the above code is Doing:
1. The first line is a comment.
2. The second line is a shebang.
3. The third line is a for loop.
4. The fourth line is a command.
5. The fifth line is a comment.

Similar Posts