문제

THe script is like exec 8< $SEQ_FILE read -u8 DATE SEQ_NUMBER Can you please help me in understanding what this means?

도움이 되었습니까?

해결책

The exec 8< $SEQ_FILE opens the file $SEQ_FILE for reading and associates it with file descriptor 8. All further commands can then read from that file descriptor.

The command read -u8 DATE SEQ_NUMBER then does exactly that. It reads one line from that file and puts the line into two variables (split according to shell rules, typically at a space).

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top