1、去除数字开头的行
1
2
3
4
5
6
7
8
|
grep
-
v
'^[0-9]'
shuangseqiu.txt |
sed
'$d'
|
sed
s/
"('"
//g
|
sed
s/
"', '"
/,
/g
|
sed
s/
"')"
//g
文件格式:
111
1
(
'2018-01-04'
,
'07,18,24,29,31,33,16'
)
(
'2018-01-02'
,
'01,08,11,26,28,31,04'
)
(
'2017-12-31'
,
'05,09,13,15,18,26,05'
)
2
|
本文转自 sailikung 51CTO博客,原文链接:http://blog.51cto.com/net881004/2057960,如需转载请自行联系原作者