
여기이전에 본 적이 없는 쉘 입력 구조를 발견했는데 작동했습니다. 그것은 말한다
comm <(fancy input mangling) <(another input construction)
이것이 일반 stdin/stdout/stderr 프로그램에서 어떻게 작동하며, 프로그램이 첫 번째 입력 파일과 두 번째 입력 파일을 어떻게 구별합니까?
답변1
man
당신의 친구 입니다 grep
.
$ man bash | grep -C2 '<('
Process Substitution
Process substitution is supported on systems that support named pipes (FIFOs) or the /dev/fd method of naming open files. It
takes the form of <(list) or >(list). The process list is run with its input or output connected to a FIFO or some file in
/dev/fd. The name of this file is passed as an argument to the current command as the result of the expansion. If the >(list)
form is used, writing to the file will provide input for list. If the <(list) form is used, the file passed as an argument
should be read to obtain the output of list.