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 > 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 -->
  #1 (permalink)  
Old 07-22-2008
melanie_pfefer melanie_pfefer is offline
Registered User
  
 

Join Date: Nov 2006
Posts: 234
get the first column of each line as a parameter

hi

I have a file with this format


server1ort1
server2ort2
server3ort3

I already built a script that starts 1 server.

I want to add 'ALL' option to start all servers

how to do that (for loop? awk? sed....)


thanks for your help