Created
May 27, 2015 13:41
-
-
Save simonvc/d81cf995c4c36fb1cc5d to your computer and use it in GitHub Desktop.
Script to fix files with the query string attached.
This file contains 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
ls *\?* | while read fn; do nfn=$(echo $fn | tr '\?' ' ' | awk '{print $1}'); cp "$fn" $nfn;done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment