سؤال

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