Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Preserving timestamp with -i switch

by duyet (Friar)
on Sep 20, 2011 at 06:07 UTC ( [id://926829]=note: print w/replies, xml ) Need Help??


in reply to Preserving timestamp with -i switch

Use -p option in cp to preserve mode, ownership, timestamp

for i in `find . -type f -print`; do cp -p $i ${i}_bk;done

Log In?
Username:
Password:

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

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

    No recent polls found