Friday, September 16, 2005

Is input from file or standard in?

Is input from file or standard in?

Is there a way to check if the input to a Bash script is from a file or
standard in?

Reply

> Hi,

> Is there a way to check if the input to a Bash script is from a file or
> standard in?

man test

look at the -t option.

Bill Seivert

Reply

0 Comments:

Post a Comment

<< Home