摘要:
%s/{/\r{\r/g%s/}/\r}\r/g%s/;\([^\r]\+\)/;\r\1/ggg=G ggvG= 阅读全文
posted @ 2020-04-28 14:53
xinyueliu
阅读(107)
评论(0)
推荐(0)
摘要:
set hlsearchset nohlsearch .* => non-greedy: .\{-} .+=> non-greedy: .\{-1,} 阅读全文
posted @ 2020-04-28 12:18
xinyueliu
阅读(195)
评论(0)
推荐(0)
摘要:
sed -i 's/111/222/g' input.txtawk 'NR == 2' input.txt #output line2sed -n 2p input.txt #output line2tail -n2 input.txt #only output the last two lines 阅读全文
posted @ 2020-04-28 11:23
xinyueliu
阅读(127)
评论(0)
推荐(0)
摘要:
grep -o 1111 input.txtvim:%s/1111/&/gn:m,ns/字符串/&/gn sed -n '/111/p' input.txtcut -d' ' -f1 input.txt|sort -rn|uniq -c |sort -rn awk -v RS="@#$j" '{pr 阅读全文
posted @ 2020-04-28 11:20
xinyueliu
阅读(121)
评论(0)
推荐(0)
浙公网安备 33010602011771号