i'm looking for how to rename files in mass quantity. basically i am completely moving from windows (ntfs) to CentOs (ext4). in windows i used to give spaces in between file names, now i want to replace spaces with "-" or "_", so that i get the full file name when i hit tab in terminal.
i've searched google and also looked into "similar threads" of LQ, but could not find answer for my specific requirement. either they are for particular directory or have a pattern/incremental in nature, for example renaming *.jpeg files, file1*.jpg file123.jpg etc.
i'm looking for solutions based on "find" command.
# find /dc/cbt/ -type f -iname "*bind*"
/dc/cbt/Books/DNS Bind Configuration in RHEL 6.pdf
/dc/cbt/Linux/Install & Configure BIND DNS Server in CentOS.mp4
/dc/cbt/Linux/YouTube/rhel 6 bind primary dns server in redhat linux.flv
i know how to display modified files, but don't know how to write them permanent. that's the problem
# find /dc/cbt/ -type f -iname "*bind*" | sed "s/ /_/ig" | tr "[:upper:]" "[:lower:]"