Bash: for loop, copy, backup
Posted
by sixtyfootersdude
on Stack Overflow
See other posts from Stack Overflow
or by sixtyfootersdude
Published on 2010-03-16T21:05:17Z
Indexed on
2010/03/16
21:11 UTC
Read the original article
Hit count: 177
Hey, not 100% sure what this error means.
% for f in "*" ; do cp $f ../backup/backup$f ; done
cp: ../backup/backup* not found
The purpose is to copy all the files into a folder into a backup folder and rename the files to backup.
© Stack Overflow or respective owner