file <(echo "abcdefghijk")

It would be really cool if this could print something like "ASCII text", i.e. that file won't just give up and tell me it's a fifo.

有帮助吗?

解决方案

Then mislead him:

$ echo "abcdefghijk" | file -
/dev/stdin: ASCII text
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top