Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^2: Rename all files on remote server to *.bak recursively

by nancylt723 (Initiate)
on Jun 06, 2014 at 12:05 UTC ( [id://1089014]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1089014]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (2)
As of 2024-04-19 21:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found