Skip to content

KushidaYusuke/lin_paste_command

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lin_paste_command

pasteコマンドの作成

gcc -o out paste.c
  • 入力
a001
a002
a003
b001
b002

b003

c001
c002
c003

例1

./out   paste1.txt paste2.txt paste3.txt
  • 出力
a001    b001
a002    b002    c001
a003            c002
        b003    c003

例2

./out  -d "&"  paste1.txt paste2.txt paste3.txt
  • 出力
a001&b001&
a002&b002&c001
a003&&c002
&b003&c003

例3

./out  -d ",$"  paste1.txt paste2.txt paste3.txt

  • 出力
a001,b001$
a002,b002$c001
a003,$c002
,b003$c003

例4

./out  -d ":" -s paste1.txt paste2.txt paste3.txt
  • 出力
a001:a002:a003
b001:b002::b003
:c001:c002:c003

About

pasteコマンドの作成

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages