Quantcast
Channel: Bashタグが付けられた新着記事 - Qiita
Viewing all articles
Browse latest Browse all 2872

Linux環境でファイルから特定文言を抽出していきたい時

$
0
0
Linux環境でファイルから特定文言を抽出していくコマンドサンプル(巨大ファイルゆえエディタから開けないときとか) sed -n 1,1000000p /usr/log/bigLog.log | grep TARGETSTR >> /home/test1.txt sed -n 1000001,2000000p /usr/log/bigLog.log | grep TARGETSTR >> /home/test1.txt sed -n 2000001,3000000p /usr/log/bigLog.log | grep TARGETSTR >> /home/test1.txt

Viewing all articles
Browse latest Browse all 2872

Trending Articles