Detailed explanation of for loop usage in shell
for command: Various uses of for i in:
for i in "file1" "file2" "file3"for i in /boot/*for i in /etc/*.conffor i in $(seq -w 10) -- equal width 01-10for i in {1...10}for i in $( ls )for I in $(< file)for i in "$@" -- take all location parameters, which can be abbreviated as for i Note: the bash shell supports C-type f ...
Posted by Ozzapoo on Fri, 17 Sep 2021 09:24:07 +0200