Difference between revisions of "Sed -n"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
+ | {{lc}} | ||
-n Suppress the default output (in which each line, after | -n Suppress the default output (in which each line, after | ||
it is examined for editing, is written to standard | it is examined for editing, is written to standard |
Revision as of 14:22, 2 February 2023
-n Suppress the default output (in which each line, after it is examined for editing, is written to standard output). Only lines explicitly selected for output are written.
See also
sed, gsed
,-n, -i
,Ansible: replace
,append
,Chef: Editing a file
,lineinfile
- Editors:
vi, vim
,sed
,awk
, emacs,lineinfile (Ansible)
, Atom,paste
, Neovim, Rider,visudo, vipw
,update-alternatives
,nano
,more, less
,.vimrc
,set (vi)
zed ack, ag, grep
,egrep, fgrep
,agrep
,ngrep
,pgrep
,awk
,sed
,strings
,tr
,tail
,mtail
,git grep
,wc
,uniq
,LogQL
,findstr (Windows)
,rg, git-grep, cut
Advertising: