두 파일의 내부 데이터를 연결하는 방법

두 파일의 내부 데이터를 연결하는 방법

예를 들어 abc.txt와 def.txt라는 두 파일 이름에는 다음과 같은 데이터가 있습니다.

abc.txt

apple
carrot

정의.txt

fruit
Vegetable

그래서 나는 아래와 같은 o/p를 원합니다:

apple fruit
carrot Vegetable 

답변1

paste -d' ' abc.txt def.txt > output.txt

또한 관련 질문:

https://stackoverflow.com/questions/3806874/how-to-merge-two-files-line-by-line-in-bash

관련 정보