đģ Sed
sed 's/"\(.*\)/"\1"/g'
sed '/^$/d'
sed 's/.*match//'
sed 's/match.*//g'
sed '0,/example1/{s/example1/example2/}'
sed 's/example1/example2/2g
2g == 2nd match
sed -n '7p'
7th line
sed '7!d'
Also 7th line
Tip: Easier with
tr
tr '"\n' ' ' < input_filename
sed -e 's/\[[^][]*\]//g'
s/^/\=line('.').". "
- đVim:
%s/^/\=line('.').". "
- đVim: