sed examples and notes

SED - Unix stream editor - a great tool for editing a lot of documents at once with scripts. Also look up gawk.

A great set of one line sed examples:
http://sed.sourceforge.net/grabbag/tutorials/

and:
http://sed.sourceforge.net/sed1line.txt


Another tutorial for SED:
http://www-106.ibm.com/developerworks/linux/library/l-sed1.html

A good FAQ, it includes many, well frequently asked questions:
http://www.ptug.org/sed/sedfaq.htm

A SED example to insert line breaks every x characters:
  sed 's/.\/&\n/g' yourfile
  sed 's/.\/&\n/g' yourfile

  Hmm... being eaten by some code.
  That's supposed to read: sed 's/.\ curley open, 494 backslash by backspace key close curly/&\n/g' yourfile

 
  From: http://ubuntuforums.org/showthread.php?t=854562

Some Notes:

tags: tool, edit
 

Related Scribbles:
  • Notes
  • Open Source SSH Server for Windows
  • Replace Text Multiple Files in Batch
  • Text (and Word Document) Editing
  • Linux Commands


  • ID: 353
    Author:
    leonard
    Date Updated:
    2015-06-25 10:16:09
    Date Created:
    2003-11-16 00:33:47

    Edit

    Comments?
     >> Leonard Chan's Homepage  >> Scribble Web  >> sed examples and notes
    leonard.lotus-land.ca is hosted by Perceptus Solutions Inc.