Computing.Net > Forums > Unix > how to read a file

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.

how to read a file

Reply to Message Icon

Name: gandeshravan
Date: September 10, 2008 at 08:41:23 Pacific
OS: xp
CPU/Ram: intel
Comment:

Hi how to read .csv file in unix
for ex: i have a file called list_chksum.csv

how can i read it in unix?

thanks in advance



Sponsored Link
Ads by Google

Response Number 1
Name: nails
Date: September 10, 2008 at 14:24:50 Pacific
Reply:

This korn shell script reads file myfile.csv line-by-line and echos each line:


#!/bin/ksh

while read line
do
echo "$line"
done < myfile.csv


0
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: how to read a file

How to delete a file named -x www.computing.net/answers/unix/how-to-delete-a-file-named-x/3350.html

Shell script to read a file and pro www.computing.net/answers/unix/shell-script-to-read-a-file-and-pro/4304.html

How to parse a file of 199 col? www.computing.net/answers/unix/how-to-parse-a-file-of-199-col/7250.html