First page Back Continue Last page Graphics
for Loop Example (using $())
ls
for x in $(ls); do
cp $x $x'.backup'
done
ls
The ls before the for statement shows:
abc def ghi
The ls after the for statement shows:
abc abc.backup def def.backup ghi ghi.backup