我有一个如下的日志文件:
Jan 01 This the log of this day.
Jan 01 This the log of this day.
Jan 01 This the log of this day.
Jan 01 This the log of this day.
Jan 01 This the log of this day.
Jan 01 This the log of this day.
Jan 01 This the log of this day.
Jan 01 This the log of this day.
Jan 01 This the log of this day.
Jan 01 This the log of this day.
Jan 02 This the log of this day.
Jan 02 This the log of this day.
Jan 02 This the log of this day.
Jan 02 This the log of this day.
Jan 02 This the log of this day.
Jan 02 This the log of this day.
Jan 02 This the log of this day.
Jan 02 This the log of this day.
Jan 02 This the log of this day.
Jan 02 This the log of this day.
Jan 02 This the log of this day.
Jan 03 This the log of this day.
Jan 03 This the log of this day.
Jan 03 This the log of this day.
Jan 03 This the log of this day.
Jan 03 This the log of this day.
Jan 03 This the log of this day.
Jan 03 This the log of this day.
Jan 03 This the log of this day.
Jan 03 This the log of this day.
Jan 03 This the log of this day.
Jan 03 This the log of this day.
我怎么能按天拆分文件?我使用了命令:
csplit log /*Jan 01*/ /*Jan 02*/ /*Jan 03*/
但有错误:
csplit: /*Jan: closing delimiter '/' missing
所以任何人都可以请告诉我如何解决这个问题?提前致谢。