User Tools

Site Tools


blog:recursively_rename_files

Recursively rename files

For mass renaming files in directories, use something like this:

find . -type f -name "*" -exec echo "mv \"{}\" \"{}.pdf\"" \; >doren.sh

The advantage is that you get a shell script file which you can verify before letting it loose.

~~LINKBACK~~

Discussion

Enter your comment. Wiki syntax is allowed:
  _      __   __  ___   ___    _  __   __ 
 | | /| / /  /  |/  /  / _ \  | |/_/  / / 
 | |/ |/ /  / /|_/ /  / ___/ _>  <   / /__
 |__/|__/  /_/  /_/  /_/    /_/|_|  /____/
 
blog/recursively_rename_files.txt · Last modified: 2012-02-17 14:45 by brb