txt

Linux commands and code snippets collection

  • Home
  • About

Tag Archives: tag

18 May

Copy all Txt Files

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
Binny V A Posted in Command Line, Linux command, copy, file, find, Linux, tag, xargs Leave a comment
30 Mar

Creating a SVN Tag

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
Binny V A Posted in Code, Command Line command, subversion, svn, tag, tagging Leave a comment
20 May

Searching text in a directory using find and grep

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\=]' {} \;
Binny V A Posted in Command Line, Linux, PHP find, grep, PHP, search, short, string, tag, text Leave a comment

Post navigation

Archives

  • October 2017
  • November 2015
  • August 2014
  • November 2013
  • August 2012
  • May 2012
  • March 2012
  • October 2011
  • August 2011
  • January 2011
  • October 2010
  • October 2009
  • August 2009
  • July 2009
  • June 2009
  • May 2009
  • April 2009
  • March 2009
  • February 2009
  • January 2009
  • December 2008
  • November 2008
  • October 2008
  • September 2008
  • August 2008
  • July 2008
  • June 2008
  • May 2008
  • April 2008
  • March 2008
  • February 2008
  • January 2008
  • December 2007
  • November 2007
  • October 2007
  • September 2007
  • August 2007
  • July 2007
  • June 2007
  • May 2007
  • April 2007
  • March 2007
  • February 2007

Meta

  • Log in
Fruitful theme by fruitfulcode Powered by: WordPress
↑