[NTLUG:Discuss] another bash question ... I/O
Paul Ingendorf
pauldy at wantek.net
Wed Feb 27 13:39:40 CST 2002
for something in `ls | grep l`
do
read -p "Enter here # " entry
echo $something $entry
done
You can obviously get more complex with this but this should be the basic framework you would use for what you asked about.
-----Original Message-----
From: discuss-admin at ntlug.org [mailto:discuss-admin at ntlug.org]On Behalf
Of Fred James
Sent: Wednesday, February 27, 2002 10:30 AM
To: discuss at ntlug.org
Subject: [NTLUG:Discuss] another bash question ... I/O
Actually, this is an extension of my first question, but maybe it is
better expressed.
I need to read from a text file, solicit user input for each item found
in that file, and then write it all out to a second text file. I
suppose I could just do it in C, but if possible I should like to do it
in bash.
Any suggestions or guidance would be appreciated.
--
...make every program a filter...
_______________________________________________
http://www.ntlug.org/mailman/listinfo/discuss
More information about the Discuss
mailing list