Archive for 2012-05-27

awkで素敵な行削除ライフ


 
cat hogehoge.txt|awk 'BEGIN{ FS="\t"; OFS="\t" }{if($1 ~ /^[0-9]/)print $0 }'>hogehoge_temp.txt


 
awk 'BEGIN{ FS="\t"; OFS="\t" }{ if(NF != 4) print $0 }' hogehoge.txt >hogehoge.txt_temp

Posted in , | Leave a comment

Search

Swedish Greys - a WordPress theme from Nordic Themepark. Converted by LiteThemes.com.