Computing.Net > Forums > Unix > read input file variables

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

read input file variables

Reply to Message Icon

Name: Robert Pearson
Date: September 4, 2003 at 08:05:40 Pacific
OS: Mandrake 7.2
CPU/Ram: 400mhz / 128
Comment:

I need to read a specific part of an input file and assign the data as variables until it reaches the "END". So, for captain coke, I need rum, 2, coke, and 4 as seperate variables.

I realize that I should probably be doing this in MySQL or other DB, but I am trying to keep from getting extremely overwhelmed at this point.

0001 captain coke
rum 2
coke 4
END
0002 dirty martini
vodka 3
olive_juice .25
vermouth .25
END
0003 vodka sour
vodka 2
sour 4
END



Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: read input file variables

Read input file for deleting images. www.computing.net/answers/unix/read-input-file-for-deleting-images/2862.html

Read win file from Unix pl_sql www.computing.net/answers/unix/read-win-file-from-unix-plsql/5994.html

how to read binary files in Unix www.computing.net/answers/unix/how-to-read-binary-files-in-unix/4566.html