linux and robert
2009年10月1日 星期四
Sed : remove empty lines, remove beginning spaces, tabs
Remove empty lines:
cat file|sed
/^$/d
Remove beginning spaces:
cat file|sed
s/^\ *//g
Remove beginning tabs:
cat file|sed
s/^\\t*/d
(Remove=Replace with nothing)
沒有留言:
張貼留言
較新的文章
較舊的文章
首頁
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言