$ which file
/usr/bin/file
$ file /usr/bin/file
/usr/bin/file: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, stripped
爲什麼這不起作用?如何將Linux的哪個命令輸出到Linux文件命令中?
$ which file | file
Usage: file [-bcikLhnNrsvz0] [-e test] [-f namefile] [-F separator] [-m magicfiles] file...
file -C -m magicfiles
嘗試file --help
瞭解更多信息。
可能重複的[爲什麼我的Bash計數器在while循環後重置](http://stackoverflow.com/questions/5006229/why-does-my-bash-counter-reset-after-while-loop) – ajreal 2011-02-16 14:06:25