サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
体力トレーニング
blog.jpalardy.com
Because of the arcane syntax? Because other languages can’t do the job? No. I resisted AWK for a long time. Couldn’t I already do everything I needed with sed and grep? I felt that anything more complex should be done with a “real” language. AWK seemed like yet-another-thing to learn, with marginal benefits. Why Learn AWK? Let me count the ways. You are working TOO HARD Too many times, I’ve seen p
Over the years, I’ve seen many people use this pattern (filter-map): $ [data is generated] | grep something | awk '{print $2}' but it can be shortened to: $ [data is generated] | awk '/something/ {print $2}' You (probably) don’t need grep Following this logic, you can replace a simple grep with: $ [data is generated] | awk '/something/' This will implicitly print lines that match the regular expre
このページを最初にブックマークしてみませんか?
『blog.jpalardy.com』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く