Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #
- # Intended for renaming selected '4cdl' images for reuploading to 4chan.
- # Do Not run these over each other or more than once on the same filenames.
- # Place the selected '4cdl' images in an empty directory along with this file.
- # Uncomment One of the lines below to use $ sh ./rename
- # Removes last upload id; keeping <Original Filename>.ext (Only run once)
- #f=(*); for i in "${f[@]}"; do mv -i "$i" "${i#*-}"; done
- # Removes original filename; keeping <Last Upload ID>.ext (Only run once)
- #f=(*); for i in "${f[@]}"; do mv -i "$i" "${i%%-*}.${i#*.}"; done
- exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement