Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Bash hacks
# Change extension of files
for f in $(ls); do mv $f $(echo $f | cut -d "." -f 1).jpeg ; done

This comment has been minimized.

Copy link
Owner Author

@manashmandal manashmandal commented Aug 22, 2019

for f in $(ls | grep .jpe$); do mv $f $(echo $f | cut -d "." -f 1).jpeg ; done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment