Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- ext=.png
- files=`ls *${ext}`
- somedir=testdir
- echo "Files: $files"
- if [ "$files" == "" ]; then
- exit
- fi
- for file in $files
- do
- echo "Copying ${file} to $somedir/${file}"
- cp ${file} $somedir/${file}
- done
- exit 0
Add Comment
Please, Sign In to add comment