VoIP, SIP, TDM Tips

VoIP,SIP, H.323, Cisco & Linux tips

Thursday, June 5, 2008

command to replace a word from a file.

Command to replace a particular string (as many times in a file) from a particular file

ls /full/path/offile | xargs perl -pi -e 's/word to search/wordto replace with/g'

Posted by Prakash Singh at 11:47 PM

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ►  2013 (3)
    • ►  August (1)
    • ►  March (2)
  • ►  2012 (2)
    • ►  June (1)
    • ►  March (1)
  • ►  2011 (3)
    • ►  December (1)
    • ►  January (2)
  • ►  2010 (6)
    • ►  July (1)
    • ►  May (4)
    • ►  February (1)
  • ►  2009 (9)
    • ►  March (4)
    • ►  February (2)
    • ►  January (3)
  • ▼  2008 (19)
    • ►  December (1)
    • ►  October (2)
    • ►  September (1)
    • ►  August (1)
    • ►  July (1)
    • ▼  June (3)
      • To Solve Kernel Panic ErrorGo to the rescue mode a...
      • Hard Disk Cloning in Linux
      • command to replace a word from a file.
    • ►  May (8)
    • ►  April (2)
  • ►  2007 (8)
    • ►  September (1)
    • ►  August (4)
    • ►  July (3)

Search This Blog

Ethereal theme. Powered by Blogger.