If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Unix Shell Scripts > reading files

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-16-04, 16:29
adnanhb adnanhb is offline
Registered User
 
Join Date: Jan 2004
Location: Saint louis, MO
Posts: 2
reading files

Hello all,
I am new to shell scripting.
Can anybody help me regarding reading a file using C-Shell scripting.
I am currently using the following code:
foreach $s (`head logfile`)
echo $s
end
But this code prints each word in the flile. I want to get each line and process it.

Thanks a lot
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On