zipzippy

shell

Sep 15th, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1.  
  2. find . -maxdepth 1 -type f -name "*\.[tT][xX][tT]" -exec sh -c 'mv "$1" "${1%.[tT][xX][tT]}.txt"' _ {} \;
  3.  
  4. ls | grep ".*\.[tT][xX][tT]" | sed 's/\(.*\)/mv "\1" "\L\1"/' | sh
Add Comment
Please, Sign In to add comment