Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- myfiles=`ls -lrt photo*.jpg | awk ' { print $9 } '`
- newprefix=photo
- fileno=0
- for file in $myfiles; do
- fileno=$(($fileno + 1))
- mv $file $newprefix$fileno
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement