#最近读的东西

#1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Usage: paste [OPTION]... [FILE]...
Write lines consisting of the sequentially corresponding lines from
each FILE, separated by TABs, to standard output.

With no FILE, or when FILE is -, read standard input.

Mandatory arguments to long options are mandatory for short options too.
-d, --delimiters=LIST reuse characters from LIST instead of TABs
-s, --serial paste one file at a time instead of in parallel
-z, --zero-terminated line delimiter is NUL, not newline
--help display this help and exit
--version output version information and exit

GNU coreutils online help: <http://www.gnu.org/software/coreutils/>
Report paste translation bugs to <http://translationproject.org/team/>
Full documentation at: <http://www.gnu.org/software/coreutils/paste>
or available locally via: info '(coreutils) paste invocation'

paste1.txt:

1
2
1 2 3
4 5 6

paste2.txt:

1
2
a b c
d e f
1
2
3
4
5
6
$ paste paste1.txt paste2.txt
1 2 3 a b c
4 5 6 d e f
$ paste -s paste1.txt paste2.txt
1 2 3 4 5 6
a b c d e f

把 N 个文件按列合并

#2

有点难