Reading files
From: ricky (rkreidl@wi.rr.com)
Date: 04/15/03
- Next message: Jason Grindlay: "Process one line of file at a time as a variable in a script?"
- Previous message: Stephane CHAZELAS: "Re: Process one line of file at a time as a variable in a script?"
- Next in thread: Stephane CHAZELAS: "Re: Reading files"
- Reply: Stephane CHAZELAS: "Re: Reading files"
- Reply: William Park: "Re: Reading files"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: rkreidl@wi.rr.com (ricky) Date: 15 Apr 2003 05:53:53 -0700
I have a file that has two columns of data separated by a space. How
would you go about reading the file and storing each field in a
different array variable.
example file below. This file has 5 records and 2 fields in each
record. I want to store each field in a separate variable. This is to
be written in Korn shell.
File
========
absddsad effdsfer
fe43wfsdsds dsddsf3
dsdse2eds 343fdsd3
sdsds dsfsdf4r33
sdassa er353fds
thanks
- Next message: Jason Grindlay: "Process one line of file at a time as a variable in a script?"
- Previous message: Stephane CHAZELAS: "Re: Process one line of file at a time as a variable in a script?"
- Next in thread: Stephane CHAZELAS: "Re: Reading files"
- Reply: Stephane CHAZELAS: "Re: Reading files"
- Reply: William Park: "Re: Reading files"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|