이전 스레드를 따라갔습니다 :명령 줄에서 두 명령을 함께 실행
쉘 파일을 실행하고 텍스트를 병렬로 쓰려고합니다. 내용은 텍스트 파일에 먼저 쓰여 져야하며 쉘 파일이 실행되어야합니다.
# input.txt < "I love cat, she is nice" && ./test.sh
bash: I love cat, she is nice: No such file or directory
또 다른 시도 :
# ./test.sh && input.txt < "I love cat, she is nice"
batch processes ..
bash: I love cat, she is nice: No such file or directory
올바른 방법은 무엇입니까?
"먼저"발생해야하는 경우 "병렬"이 없습니다. – choroba