![]() |
|
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Unverified User
Join Date: Aug 2005
Location: none
Posts: 146
Rep Power: 0
![]() |
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
__________________
Warning: My posts may change (dramatically) within the first 15 minutes they're posted. Got 'Nux?—GNU/Linux and other free software support. It's GNU/Linux, not just Linux. |
|
|
|
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Reading character input into an array (raw mode) | shoeyfighter | C | 3 | Nov 2nd, 2006 3:49 PM |
| c++ reading from a file ... | programmingnoob | C++ | 8 | Apr 22nd, 2006 6:17 PM |
| CPU Usage goes to 100% when pthread_cond_wait is being used | zen_buddha | C++ | 1 | Oct 13th, 2005 5:59 AM |
| Resetting stdin after EOF | o0zi | C | 2 | May 23rd, 2005 11:25 PM |
| How do I direct stdout to the screen, stdin to the keyboard? | fzrrider | C++ | 0 | Feb 13th, 2005 5:33 PM |