Lines Matching refs:method
64 sed "s/$//" # method 1
65 sed -n p # method 2
89 # center all text in the middle of 79-column width. In method 1,
91 # spaces are appended at the end of the line. In method 2, spaces at
94 sed -e :a -e 's/^.\{1,77\}$/ & /;ta' # method 1
95 sed -e :a -e 's/^.\{1,77\}$/ &/;ta' -e 's/\( *\)\1/\1/' # method 2
116 sed '1!G;h;$!d' # method 1
117 sed -n '1!G;h;$p' # method 2
158 sed '$!d' # method 1
159 sed -n '$p' # method 2
162 sed -n '/regexp/p' # method 1
163 sed '/regexp/!d' # method 2
166 sed -n '/regexp/!p' # method 1, corresponds to above
167 sed '/regexp/d' # method 2, simpler syntax
206 sed -n '/^.\{65\}/!p' # method 1, corresponds to above
207 sed '/^.\{65\}/d' # method 2, simpler syntax
213 sed -n '8,12p' # method 1
214 sed '8,12!d' # method 2
217 sed -n '52p' # method 1
218 sed '52!d' # method 2
219 sed '52q;d' # method 3, efficient on large files
254 sed -e :a -e '$d;N;2,10ba' -e 'P;D' # method 1
255 sed -n -e :a -e '1,10!{P;N;D;};N;ba' # method 2
262 sed '/^$/d' # method 1
263 sed '/./!d' # method 2
267 sed '/./,/^$/!d' # method 1, allows 0 blanks at top, 1 at EOF
268 sed '/^$/N;/\n$/D' # method 2, allows 1 blank at top, 0 at EOF