Kero4 Wiki
開始行:
#author("2017-06-14T14:34:47+09:00","default:kow","kow")
**sed 空白行を削除 [#u9f24e74]
~
- ''syntax:''
~
&color(red,){'' sed -e '/^$/d' ./input.txt ''};~
&color(red,){'' cat ./input.txt | sed -e '/^$/d' ''};
~
~
- ''comment:''~
空白行を削除を削除する~
~
- ''Example:''
~
#highlight(php:nogutter:collapse){{
#
#cat input.txt
test line1 test
test line2
test line3
test line5
test line7 test
#
#sed -e '/^$/d' ./input.txt
test line1 test
test line2
test line3
test line5
test line7 test
#
#cat ./input.txt | sed -e '/^$/d'
test line1 test
test line2
test line3
test line5
test line7 test
#
#
}}
~
#highlight(end)
~
~
&tag(Linux,sed);
~
~
[[Goto Top Page>/]]
~
終了行:
#author("2017-06-14T14:34:47+09:00","default:kow","kow")
**sed 空白行を削除 [#u9f24e74]
~
- ''syntax:''
~
&color(red,){'' sed -e '/^$/d' ./input.txt ''};~
&color(red,){'' cat ./input.txt | sed -e '/^$/d' ''};
~
~
- ''comment:''~
空白行を削除を削除する~
~
- ''Example:''
~
#highlight(php:nogutter:collapse){{
#
#cat input.txt
test line1 test
test line2
test line3
test line5
test line7 test
#
#sed -e '/^$/d' ./input.txt
test line1 test
test line2
test line3
test line5
test line7 test
#
#cat ./input.txt | sed -e '/^$/d'
test line1 test
test line2
test line3
test line5
test line7 test
#
#
}}
~
#highlight(end)
~
~
&tag(Linux,sed);
~
~
[[Goto Top Page>/]]
~
ページ名: