Microsoft
Software
Hardware
Network
Question : Korn Shell: Read variable length file with variable number of fields and store fields in variables
Store the fields of one record for all records of a variable length ascii file in variables in a Korn Shell script.
For example, the format of the file is:
field1, field2, field3, .. .field n where n may be any number and the number differs between records.
There may be 1-n records in the file.
For each record, the fields should be assigned to a variable $FIELD1, $FIELD2, ... $FIELDN; The variables shall be assigned for each record in turn; provide a variable indicating the number of fields in the record (
Variables available in a while or for loop shall be:
$numberoffields, $Field1, $Field2, ... $FieldN).
Thank you for your trouble,
C:)
Answer : Korn Shell: Read variable length file with variable number of fields and store fields in variables
you can always accept the answer you think is correct and distribute points as you see proper
Random Solutions
SQL to count distinct if a value appears more than 5 times
Split Windows Backup Files
How to trap the error in datawindow itemchanged event and clicked event?
Why is ACCESS DENIED in LsaOpenPolicy?
Word VBA how to find/delete pge breaks
Conect to citrix Metarframe Server thru mobile 3G and GPRS card
Making Access count the number of fields filled in.
Pocket PC and Vista - Sync over the Internet
Photoshop CS4 - Batch zoom into 1:1 pixel ratio? Perference? For large images... zoom ratio
DTC between windows server 2008 (WEB) & Windows Server 2000 (Standard)