파일의 행을 인쇄하려면 cat, tail, head 또는 grep 등을 사용할 수 있습니다. 그러나 제 문제는 다소 복잡합니다. . 나는 그것을 이해할 수 없었다.세 번째 파일에 저장된 행 번호에 따라 두 파일의 행을 인쇄하는 방법
두 파일이 있는데 세 번째 파일에 행 번호가 있으면이 두 파일의 행을 나란히 인쇄하려고합니다.
파일 A를 :
예를 들어 다음과 같이의 나의 처음 두 파일을 가정 해 봅시다
FileA first sentence
FileA second sentence
FileA third sentence
파일 B :
FileB BBfirst sentence
FileB BBsecond sentence
FileB BBthird sentence
다음과 같이 파일 C가 될 수 있습니다 :
파일 C :
3
1
그래서 저는 다음과 같이 인쇄 할 :
FileA third sentence FileB BBthird sentence
FileA first sentence FileB BBfirst sentence
내가 어떻게 할 수 있습니까? 구조에