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 -->
  #4 (permalink)  
Old 04-04-2006
george_ george_ is offline
Registered User
  
 

Join Date: Mar 2006
Posts: 16
what removed is going on????????

while read LINE;
do
echo LINE |awk -v LIN="${LINE}" '{print substr(LIN,1,7)","substr(LIN,8,5)","substr(LIN,14,10)","substr(LIN,24,6)","substr(LIN,30,8)","substr (LIN,38,4)}';
done < prefinal.txt

prefinal.txt:
1234 grgrg 203902 ksdjh oehr weo


why it doesn't work????????

removed cygwin

Last edited by Perderabo; 04-04-2006 at 09:32 AM.. Reason: Remove profanity