Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はここで次のタスクに時間を費やしています。最初のフィールドが2番目のフィールドと一致する入力ファイルのすべての行を印刷する必要があります。これが明らかに機能していない私の構文です: awk '$1==$2 {print $0}' < inputfile, 何が間違っているのですか
3 番目のフィールドは$3、いいえ?
$3
awk '$1==$3' inputfile
(ここにいるので、print $0暗示されている と<リダイレクトを削除できます。)
print $0
<