Upgrade to Pro — share decks privately, control downloads, hide ads and more …

awk basics

awk basics

awkの使い方を紹介します。

競プロもくもくわいわい会 2023/05/22

yammerjp

May 22, 2023
Tweet

More Decks by yammerjp

Other Decks in Programming

Transcript

  1. தࢁܚ༞ w ৬ۀ8FCΞϓϦέʔγϣϯ ΤϯδχΞ ʙ  w झຯEPU fi MFTͷ؅ཧ

    w झຯBXLΛॻ͘͜ͱ w 5XJUUFS(JU)VCZBNNFSKQ ΍Μ·ʔ 
  2. ྫ֤ߦͷۮ਺ྻͷϑΟʔϧυΛग़ྗ   { for(i=1; i<=NF; i++) { if(i%2==0) {

    if(i!=1) { printf(“ “) } printf(“%s”, $i) } } printf(“\n”) } IUUQTHJTUHJUIVCDPNZBNNFSKQEECBBFGCEFDEB