Skip to content

Instantly share code, notes, and snippets.

@hgascon
Last active March 15, 2022 14:14
Show Gist options
  • Save hgascon/d2cbf1c048222f4e305fe9813ee6520b to your computer and use it in GitHub Desktop.
Save hgascon/d2cbf1c048222f4e305fe9813ee6520b to your computer and use it in GitHub Desktop.
Move files and files with new extension to new dir
for FILE in $(ls #.pckl); do
NAME=$(echo $FILE | cut -d '_' -f 1)
NAMEAPK=$NAME.apk
mv $FILE DONE/
mv $NAMEAPK DONE/
done
for FILE in $(ls #.pckl); do NAME=$(echo $FILE | cut -d '_' -f 1); NAMEAPK=$NAME.apk; mv $FILE DONE/; mv $NAMEAPK DONE/; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment