Skip to content

Instantly share code, notes, and snippets.

@xsqian
xsqian / sed_snippets.sh
Created May 5, 2021 16:35 — forked from lamb-mei/sed_snippets.sh
sed examples
##FILE SPACING:
# double space a file
sed G
# double space a file which already has blank lines in it. Output file
# should contain no more than one blank line between lines of text.
sed '/^$/d;G'
# triple space a file