The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 01-17-2006
fablef00 fablef00 is offline
Registered User
  
 

Join Date: Jan 2006
Posts: 3
I just tried this and it seems I have a lead now.

cat /etc/hosts | while q=$(line); do echo $q; done


but feel free to give sugestions on how I should handle the logic with checking the if the file structure exists.


Cheers
fable00