[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: script: test binary program vs shell script



On Qui, 16 Abr 2009, "Jerome BENOIT" wrote:
Hello List,

in side a bash script, I would like to test is a given program
is either a binary file or a script file:
is there way to so ?

file /path/to/program

should give the information you need.

--
Eduardo M KALINOWSKI
eduardo@kalinowski.com.br


Reply to: