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 -->
  #5 (permalink)  
Old 04-04-2006
vino's Avatar
vino vino is offline Forum Staff  
Supporter (in vino veritas)
  
 

Join Date: Feb 2005
Location: Bangalore, India
Posts: 2,798
Quote:
Originally Posted by george_
what a 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
You broke the very first rule of the forum.

(1) No flames, shouting (all caps), sarcasm, bullying, profanity or arrogant posts.

Please adhere to the rules.