Search
Most active topics
Top posting users this month
No user |
GeoMap
Replace return in sed (用sed删除回车、换行)
Page 1 of 1
Replace return in sed (用sed删除回车、换行)
sed -e ':beg; $!{N; b beg}; s/\n/ /g;' test.txt
or
sed -e ':beg; $!{N; b beg}; y/\n/ /;' test.txt'
or
cat test.txt | tr '\n' ' '
or
sed -e ':beg; $!{N; b beg}; y/\n/ /;' test.txt'
or
cat test.txt | tr '\n' ' '
halala- 帖子数 : 99
金币(Coin) : 4536
注册日期 : 2012-08-17
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum