The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How can i read a non text file in unix - ELF-64 executable object file - IA64 alexcol UNIX for Advanced & Expert Users 8 11-07-2008 08:56 AM
How to read from a .dat file in Unix Sibasish Shell Programming and Scripting 5 01-19-2008 01:45 AM
ls while read loop - internal read picking up wrong input dkieran Shell Programming and Scripting 2 05-14-2007 03:02 PM
Unix Loop from a file dkranes Shell Programming and Scripting 4 04-06-2007 03:36 PM
Read from a file and use the strings in a loop xboxer21 Shell Programming and Scripting 3 04-18-2006 03:30 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-21-2008
sreenusola sreenusola is offline
Registered User
  
 

Join Date: Aug 2008
Posts: 19
How to read a file in unix using do....done loop

Hi ,

can some give me idea about how to use do...done while loop in UNIX to read the contents of a file..
  #2 (permalink)  
Old 08-21-2008
lochraven lochraven is offline
Registered User
  
 

Join Date: Aug 2008
Posts: 29
One simple example:

while read line
do
do what you want here with $line
done < filename
  #3 (permalink)  
Old 08-21-2008
sreenusola sreenusola is offline
Registered User
  
 

Join Date: Aug 2008
Posts: 19
Thanks a lot
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 08:40 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0