Editor
  • sed
command description
: A label is any sequence of up to seven characters. There are no spaces permitted between the colon and the label.
b branch : transfers control unconditionally in a script to a line containing a specified label. If no label is specified, control passes to the end of the script.
c change : replaces all addressed lines with a single copy of the text. No command following the change command in the script is applied.
d delete : deletes the contents of the pattern space and causes a new line of input to be read and a new pass on the editing script to begin from the top
n next : outputs the contents of the pattern space and then reads the next line of input without returning to the top of the script
t test : branches to a label (or the end of the script) if a successful substitution has been made on the currently addressed line
  • awk
system variable condition description
FS a single space fields are separated by runs of spaces and/or tabs
FS other single character each occurrence of that character separates another field
FS more than a single character regular expression
command Descroption
gg or 1G or :1 move cursor to the beginning of file
G or :$ move cursor to the end of file
CTRL-f scroll forward one page
CTRL-b scroll back one page
:ju or :jumps print the jump list
CTRL-I or <Tab> go to newer cursor position in jump list
CTRL-O go to older cursor position in jump list
:/xxx search forward for xxx
n find next occurrence of search
N find previous occurrence of search
page_revision: 38, last_edited: 1252060615|%e %b %Y, %H:%M %Z (%O ago)
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License