|
cat demo_fileEWREST_id_0='861';
. ./demo_file # (Note the PERIOD SPACE PATH/FILE syntax)/home/DLOVELADY>
# Now demo_file is loaded into my memory, so that:/home/DLOVELADY>
echo $EWREST_id_0861
echo $EWREST_summary_1Test -TW
my unix skill is minimum at best. Can you please give me a bit more
clue on
what you mean? I'm currently think about using your readline utility
to
read the file one line at a time and then parse it.
Thanks
"Scott Klement" <midrange-l@xxxxxxxxxxxxxxxx> wrote in message
news:mailman.41003.1304028180.2702.midrange-l@xxxxxxxxxxxx...
QShell might work -- depending on the specifics.script,
But with the example you posted, if it were sourced into a shell
it would be loaded into variables.know if
On 4/28/2011 4:33 PM, Hockchai Lim wrote:
I've a ifs file with content like below:
EWREST_id_0='861';
EWREST_wfstate_0='Open';
EWREST_summary_0='SummSumm -TW';
EWREST_boss_ciss_customer_no_0='1234';
EWREST_id_1='761';
EWREST_wfstate_1='Open';
EWREST_summary_1='Test -TW';
EWREST_boss_ciss_customer_no_1='123456789';
Each line basically contains a key-value pair data. Does anyone
typethere is already an open source utility that can read and parse this
time?of
data file where caller can basically ask for a pair of data at a
thanks
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.