pasteコマンドの作成
gcc -o out paste.c
- 入力
a001
a002
a003
b001
b002
b003
c001
c002
c003
./out paste1.txt paste2.txt paste3.txt
- 出力
a001 b001
a002 b002 c001
a003 c002
b003 c003
./out -d "&" paste1.txt paste2.txt paste3.txt
- 出力
a001&b001&
a002&b002&c001
a003&&c002
&b003&c003
./out -d ",$" paste1.txt paste2.txt paste3.txt
- 出力
a001,b001$
a002,b002$c001
a003,$c002
,b003$c003
./out -d ":" -s paste1.txt paste2.txt paste3.txt
- 出力
a001:a002:a003
b001:b002::b003
:c001:c002:c003