
我是 Unix 指令的新手。我試圖在 Git Bash 中執行以下命令,它定向到錯誤訊息: 貼上:/dev/fd/63:沒有這樣的檔案或目錄
# Set Up Image Lists
paste <(awk "{print \"$PWD\"}" <5k.part) 5k.part | tr -d '\t' > 5k.txt
paste <(awk "{print \"$PWD\"}" <trainvalno5k.part) trainvalno5k.part | tr -d '\t' > trainvalno5k.txt
誰能幫助我理解這意味著什麼以及我應該做什麼?
答案1
cat
我用 _process 替換替換了文件-:
]# cat ~/0/test <(tac <~/0/test) <(grep 'world' <~/0/test) <(tac <~/0/test)
hello
world
world
hello
world
world
hello
所以原則上這是可行的,
但我知道“fd/63”錯誤;但去挑釁呢?透過留出一個空間,它以某種方式「起作用」。
]# cat ~/0/test <(tac <~/0/test) <(grep 'world' <~/0/test)<(tac <~/0/test)
hello
world
world
hello
cat: /dev/fd/62/dev/fd/61: Not a directory
/dev/fd/
是文件描述符;實施 PS 的標準方法。