mattintosh note

Hello Raspberry Pi!

なんかのメモ

BEGIN {
    ORS = "\t"
    print ID
}
/keyword_0/ {
    flg[0] = 1
    str[0] = $0
}
/keyword_1/ {
    flg[1] = 1
    str[1] = $0
}
END {
    for (i = 0; i <= 1; i++) {
        if (flg[i] != 1) {
            str[i] = "null"
        }
        print str[i]
    }
    ORS = "\n"
    print ""
}
広告を非表示にする