貼り付け: /dev/fd/63: そのファイルやディレクトリはありません。

貼り付け: /dev/fd/63: そのファイルやディレクトリはありません。

私は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を実装する標準的な方法です。

おすすめ記事