1

grepping files and then renaming file

view story
linux-howto

http://www.unix.com – Hi, What is the easiest way to list a directory with 1000s of filenames, grep it for a certain sequence of numbers, and if found to rename the file by the value you are grepping. eg The file I am examining will looks like this: 1234 1224343 2324 244 35665 If I am examining a list of files in a given directory and grepping them for values in the file, if the value in the respective row is found to rename that file by the value of the row? Thanks in advance (HowTos)