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 UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 05-15-2008
kittusri9 kittusri9 is offline
Read Only
 

Join Date: Apr 2008
Posts: 40
Arrow want line whatever i want is there any way

Hi friends

I need to get what ever line number i want


Supplier.profile
-----------------
SFTP/INVTRAN
SFTP/INVSNAP
GATEWAY/INVTRAN
GATEWAY/INVSNAP

----------------



exec 0<$Supplier.profile
while read LINE
do
echo $LINE
done
------------------------------

it prints line by line but i need what ever line i want
like

line4 -> GATEWAY/INVSNAP
OR
LINE3 -> GATEWAY/INVTRAN

is there any way to get like that



Thanks
Krish.
Reply With Quote
Forum Sponsor