Created
May 22, 2023 01:36
-
-
Save yammerjp/ddb8a0a6ef9140084b91077dec9da899 to your computer and use it in GitHub Desktop.
偶数列のフィールドを出力
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| for(i=1; i<=NF; i++) { | |
| if(i%2==0) { | |
| if(i!=1) { | |
| printf(" ") | |
| } | |
| printf("%s", $i) | |
| } | |
| } | |
| printf("\n") | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment