![]() |
reading stdin
I want to read stdin and put it in array foo, but I don't want to bring up the prompt if stdin is empty, like
:
read -a foo |
I found a way:
:
if ! [ -t 0 ]; thenFinished script (until I find another thing I should but haven't implemented): http://athingis.boldlygoingnowhere.org/software/prefix |
| All times are GMT -5. The time now is 11:14 PM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC