in reply to Re: Rename all files on remote server to *.bak recursively
in thread Rename all files on remote server to *.bak recursively

Thanks for the suggestion. Here is the resulting command, but it did not rename the files: cmd is perl -ne 'chomp;$n=$_.q^.bak^;rename($_,$n)'
  • Comment on Re^2: Rename all files on remote server to *.bak recursively

Replies are listed 'Best First'.
Re^3: Rename all files on remote server to *.bak recursively
by kschwab (Vicar) on Jun 06, 2014 at 20:56 UTC
    The cmd is missing the "find /whatever -type f -print|" that should be at the front. Guessing you made some modifications. The perl command is looking for a list of files to be piped to it.