You are hereBlogs / suresh.gju's blog / find files in linux and take backup
find files in linux and take backup
Tags : find linux
Recently working on one of my projects i found how powerful linux commands are, if u have proper knowledge.
My Problems is to find a files (test.php) in a directory and its sub directory. and then take a backup of that file and then copy a new file at the same place.
# backup test.php
find */*/www/code/ -name 'test.php' -exec cp {} {}.bak \;
# copy new_test.php
find */*/www/ -name 'code' -type d -exec cp /home/new_test.php {}/ \; 2>/dev/null
- suresh.gju's blog
- Login or register to post comments
I really like your way of expressing the opinions and sharing the information. send flowers to japan
Thanks for your marvelous posting! I actually enjoyed reading it, you will be a great author.I will ensure that I bookmark your blog and will come back in the foreseeable future. I want to encourage that you continue your great job, have a nice weekend!think you’ve made some truly interesting points. Not too many people would actually think about this the way you just did. I’m really impressed that there’s so much about this subject that’s been uncovered and you did it so well, with so much class. Good one you, man! Really great stuff here.
leather trenchcoat//
trench coat sale//
leather jackets for women on sale//
long leather coats for women//
designer jackets women//
belted trench coat//
full length leather coat//
army trench coat//