리눅스 paste 변수 2개 결합하기

1 개요[ | ]

리눅스 paste 변수 2개 결합하기
Console
Copy
root@localhost:~# NAMES=$'Mark Smith\nBobby Brown\nSue Miller\nJenny Igotit'
root@localhost:~# NUMBERS=$'555-1234\n555-9876\n555-6743\n867-5309'
root@localhost:~# echo "$NAMES"
Mark Smith
Bobby Brown
Sue Miller
Jenny Igotit
root@localhost:~# echo "$NUMBERS"
555-1234
555-9876
555-6743
867-5309
root@localhost:~# paste <(echo "$NAMES") <(echo "$NUMBERS")
Mark Smith      555-1234
Bobby Brown     555-9876
Sue Miller      555-6743
Jenny Igotit    867-5309

2 같이 보기[ | ]

3 참고[ | ]