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 -->
  #6 (permalink)  
Old 04-21-2009
mshulman1980 mshulman1980 is offline
Registered User
  
 

Join Date: Apr 2009
Posts: 4
giannicello: thanks!

I appended the script to add the colons back in for later parsing.

#!/bin/bash
IFS=":"
while read line; do
echo $line
done <servername.lpp|tr ' ' ':'