Skip to content

Instantly share code, notes, and snippets.

View j-andrews7's full-sized avatar
💭
Figgerin' it out

Jared Andrews j-andrews7

💭
Figgerin' it out
View GitHub Profile
@j-andrews7
j-andrews7 / sed cheatsheet
Created October 4, 2021 04:02 — forked from ssstonebraker/sed cheatsheet
Sed Cheatsheet
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'
HANDY ONE-LINE SCRIPTS FOR AWK 30 April 2008
Compiled by Eric Pement - eric [at] pement.org version 0.27
Latest version of this file (in English) is usually at:
http://www.pement.org/awk/awk1line.txt
This file will also be available in other languages:
Chinese - http://ximix.org/translation/awk1line_zh-CN.txt
USAGE: