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.
処理するデータ ファイルが多数ありますが、すべてのファイルのすべてのレコードを処理する必要はありませんawk。現在のファイルの処理を停止し、次のファイルにスキップするように指示する方法はありますか?
awk
nextfile ステートメントを使用できます。これは多くの awks でサポートされています (おそらく Solaris を除く)。
$ awk '/4/{nextfile} 1' <(seq 10) <(seq 10) 1 2 3 1 2 3