Created
September 9, 2018 20:14
-
-
Save tatic0/459a57ad799f039882e920c42e5e08a8 to your computer and use it in GitHub Desktop.
nice one liners to compare/delete files with the same name but different extension in bash
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for i in $(ls *.mov); do echo "$i --> `ls ${i%.*}.MP4`"; done | |
for i in $(ls *.mov); do echo "$i --> `rm -vf ${i%.*}.MP4`"; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment