当前位置: 技术问答>linux和unix
不怎么会写脚本,XDJM帮个忙
来源: 互联网 发布时间:2016-12-20
本文导语: collectionBeginTime,ObjectCode,hostname,Granularity,suspectFlag,hwPortalLogoutACIP,hwPortalLogoutReqCount,hwPortalLogoutSuccCount,hwPortalNTFLogoutCount,hwPortalNTFLSuccCount,hwPortalPULogoutReqCount,hwPortalPULogoutSuccCount,hwPortalPUNTFLogoutCount,hwPortalPUNTFLSuccCount,hwPortalCU...
collectionBeginTime,ObjectCode,hostname,Granularity,suspectFlag,hwPortalLogoutACIP,hwPortalLogoutReqCount,hwPortalLogoutSuccCount,hwPortalNTFLogoutCount,hwPortalNTFLSuccCount,hwPortalPULogoutReqCount,hwPortalPULogoutSuccCount,hwPortalPUNTFLogoutCount,hwPortalPUNTFLSuccCount,hwPortalCULogoutReqCount,hwPortalCULogoutSuccCount,hwPortalCUNTFLogoutCount,hwPortalCUNTFLSuccCount
2011-08-04 21:14:00+0800,00500000002852850201,Portal_Host,120,0,10.137.7.66,0,0,0,0,0,0,0,0,0,0,0,0
2011-08-04 21:15:00+0800,00500000002852850201,Portal_Host,120,0,10.137.7.66,0,0,0,0,0,0,0,0,0,0,0,0
脚本格式如上,现在需要删掉第一行,去除字段介绍的,只要后面2行,怎么写?谢谢了
2011-08-04 21:14:00+0800,00500000002852850201,Portal_Host,120,0,10.137.7.66,0,0,0,0,0,0,0,0,0,0,0,0
2011-08-04 21:15:00+0800,00500000002852850201,Portal_Host,120,0,10.137.7.66,0,0,0,0,0,0,0,0,0,0,0,0
脚本格式如上,现在需要删掉第一行,去除字段介绍的,只要后面2行,怎么写?谢谢了
|
tail -n2 file
|
sed -i '1d' yourfile
您可能感兴趣的文章:
本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。