Analisando o GNU sed
, o arquivo info fornece 33 comandos:
# Add "substitute" mnemonic, which the info file left out.
info sed "Command and Option Index" | \
sed -n '/\*/s/ s c/ s \(substitute\) c/;s/command[:,].*//p'
Saída:
- : (label)
- = (print line number)
- a (append text lines)
- b (branch)
- c (change to text lines)
- D (delete first line)
- d (delete)
- e (evaluate)
- F (File name)
- G (appending Get)
- g (get)
- H (append Hold)
- h (hold)
- i (insert text lines)
- L (fLow paragraphs)
- l (list unambiguously)
- N (append Next line)
- n (next-line)
- P (print first line)
- p (print)
- q (quit)
- Q (silent Quit)
- r (read file)
- R (read line)
- s (substitute)
- T (test and branch if failed)
- t (test and branch if successful)
- v (version)
- w (write file)
- W (write first line)
- x (eXchange)
- y (transliterate)
- z (Zap)
A maioria dos mnemônicos do GNU parece estar em uso geral, mas não em todos. Outros usos incluem: