Archive-Name: editor-faq/sed Posting-Frequency: irregular Last-modified: 10 March 2003 Version: 015 URL: http://sed.sourceforge.net/sedfaq.html Maintainer: Eric Pement (pemente@northpark.edu)

THE SED FAQ Frequently Asked Questions about sed, the stream editor

double/triple-space a file?

convert DOS/Unix newlines?

delete leading/trailing spaces?

do substitutions on all/certain lines?

delete consecutive blank lines?

delete blank lines at the top/end of the file?

ONE-CHARACTER QUESTIONS

CHANGING STRINGS

CHANGING BLOCKS (consecutive lines)

SHELL AND ENVIRONMENT

FILES, DIRECTORIES, AND PATHS