www.delorie.com/gnu/docs/sed/sed_3.html   search  
 
Buy the book!


sed, a stream editor

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

3. sed Programs

A sed program consists of one or more sed commands, passed in by one or more of the `-e', `-f', `--expression', and `--file' options, or the first non-option argument if zero of these options are used. This document will refer to "the" sed script; this is understood to mean the in-order catenation of all of the scripts and script-files passed in.

Each sed command consists of an optional address or address range, followed by a one-character command name and any additional command-specific code.

3.1 Selecting lines with sed  
3.2 Overview of Regular Expression Syntax  Overview of regular expression syntax
3.3 Where sed Buffers Data  Where sed buffers data
3.4 Often-Used Commands  Often used commands
3.5 The s Command  sed's Swiss Army Knife
3.6 Less Frequently-Used Commands  Less frequently used commands
3.7 Commands for sed gurus  
3.8 Commands Specific to GNU sed  Commands specific of GNU sed
3.9 GNU Extensions for Escapes in Regular Expressions  Specifying special characters


  webmaster   donations   bookstore     delorie software   privacy  
  Copyright © 2003   by The Free Software Foundation     Updated Jun 2003  

Please take a moment to fill out this visitor survey
You can help support this site by visiting the advertisers that sponsor it! (only once each, though)