cat txt.txt | awk '!a[$0]++' > new.txt 文件字符串去重復
cat -n access.log | grep 'nasid' | awk -v head="nasid" -v tail="HTTP/1.1" '{print substr($0, index($0,head)+length(head),index($0,tail)-index($0,head)-length(head));}' > ./txt.txt 文件字符串提取
本站僅提供存儲服務(wù),所有內容均由用戶(hù)發(fā)布,如發(fā)現有害或侵權內容,請
點(diǎn)擊舉報。