Sunday, May 18th, 2008 11:15 PM
Find and copy all files with ‘.txt’ extention from a directory to another
find /home/binnyva -name '*.txt' | xargs cp -av --target-directory=/home/backup/ --parents
No Comments »
Sunday, March 30th, 2008 10:34 PM
Creating a tag in SVN means that you copy the entire trunk to another folder in the ‘tags’ folder…
svn copy trunk/ tags/TAG_NAME
No Comments »
Sunday, May 20th, 2007 02:22 PM
Use find and grep to search for a specific text in a directory. In this example, we search for files which uses the PHP short tag – <?
find -name '*.php' -exec grep '<?[^p\=]' {} \;
No Comments »