2016-10-28
- 檔案1(f1.txt)
abc 123 def 456 - 檔案2(f2.txt)
0000 1111 2222 3333 4444 - 指令(command) ( -d “,” 以逗號為分隔,預設為 Tab )
abc
123
def
456
0000
1111
2222
3333
4444
abc
123
def
456
awk '{if(NR%2==0){printf $0 "\n"}else{printf "%s:",$0}}' merge.txt
或
awk 'NR%2{printf "%s:",$0;next}{print;}' merge.txt| 語言 | 單行註解 | 多行註解 |
|---|---|---|
| perl | # | =head 多行註解 =cut |
| AutoHotKey | ; | |
| C | // | /* 多行註解 */ |
| C++ | // , # | /* 多行註解 */ |
| Java | // , # | /* 多行註解 */ |
| C# | // , # | /* 多行註解 */ |
| vb | ', REM | 無多行註解 |
| php | // , # | /* 多行註解 */ |
| jsp | // | /* 多行註解 */ |
| pascal | // | { 多行註解 } |
| delphi | // | { 多行註解 } |
| bash | # | |
| Power Language | { 多行註解 } |