Last active
December 16, 2015 13:48
-
-
Save gdevanla/5443840 to your computer and use it in GitHub Desktop.
Rename files with substring found in original file names.
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`; do x=`echo $i | sed "s/doku.php.*s:uc\([1-9]*\).*/uc\1/g"`; mv $i $x.txt ; done; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment