Skip to content

Instantly share code, notes, and snippets.

View maycat's full-sized avatar

유자 Yuja maycat

View GitHub Profile
@maycat
maycat / gist:7593877
Created November 22, 2013 02:38
sed cookbook
# print the first line
sed -n 1p somefile.txt
sed '1!d' somefile.txt
# print lines 2 to 4
sed -n 2,4p somefile.txt
sed '2,4!d' somefile.txt
# print lines 1 to 2 and line 4
sed -n -e 1,2p -e 4p somefile.txt

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt