cli, linux CLI for loop November 20, 2008 szisti 3 Comments Since i usually forget this: for x in `ls`; do echo cp $x/cover.jpg $x.jpg; done
This one sometimes is usefull as well
find ./ -name ‘.svn’ -exec rm -rf {} \;
find ./ -name *.jpg -and -not -name ‘cover.jpg’ -exec rm -rf {} \;
for i in {1..5}; do COMMAND-HERE; done