Posts Tagged With: tag

Copy all Txt Files

Tagged with: , , , , , ,

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 »

Creating a SVN Tag

Tagged with: , , , ,

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 »

Searching text in a directory using find and grep

Tagged with: , , , , , , ,

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 »