Skip to content

Instantly share code, notes, and snippets.

View vivekruhela's full-sized avatar
🎯
Focusing

Vivek Ruhela vivekruhela

🎯
Focusing
View GitHub Profile
@vivekruhela
vivekruhela / sed cheatsheet
Created July 5, 2018 04:31 — forked from un33k/sed cheatsheet
magic of sed -- find and replace "text" in a string or a file
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'