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

Recent comments
5 weeks 11 hours ago
17 weeks 3 days ago
17 weeks 3 days ago
17 weeks 6 days ago
18 weeks 12 hours ago
27 weeks 4 days ago
27 weeks 6 days ago
29 weeks 1 day ago
29 weeks 2 days ago
30 weeks 1 day ago