本帖最后由 wjx515 于 2013-7-18 13:21 编辑
文本格式如下:
2013-06-04 xcxvc vsdfdvxcvxcvxcv sdfd 2
2013-06-04 xcxvc vsdfdvxcvxcvxcv sdfd
2013-06-04 xcxvc vsdfdvxcvxcvxcv sdfd 5
2013-06-04 xcxvc vsdfdvxcvxcvxcv sdfd 6
2013-06-04 xcxvc vsdfdvxcvxcvxcv sdfd 6
2013-06-05 xcxvc vsdfdvxcvxcvxcv sdfd
2013-06-05 xcxvc vsdfdvxcvxcvxcv sdfd
2013-06-05 xcxvc vsdfdvxcvxcvxcv sdfd
2013-06-05 xcxvc vsdfdvxcvxcvxcv sdfd
2013-06-06 xcxvc vsdfdvxcvxcvxcv sdfd
2013-06-06 xcxvc vsdfdvxcvxcvxcv sdfd
2013-06-06 xcxvc vsdfdvxcvxcvxcv sdfd
2013-06-06 xcxvc vsdfdvxcvxcvxcv sdfd
如何将上面的文本分为含2013-06-04的为一个文本。命名为2013-06-04.txt
如何将上面的文本分为含2013-06-05的为一个文本。命名为2013-06-05.txt
如何将上面的文本分为含2013-06-06的为一个文本。命名为2013-06-06.txt
文本很大,最好能用gsed和gawk解决 ,求助了!! |