The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




Thread: awk script help
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 11-24-2008
shehzad_m shehzad_m is offline
Registered User
  
 

Join Date: Jun 2008
Posts: 31
awk script help

i have a file which looks like below

001259 HCART TLD 0 215 - 1 569953856 FULL
001405 HCART TLD 0 2 - 3 444650118 FULL/MPX
001473 HCART TLD 0 11 - 1 477960976 FULL/MPX
001484 HCART TLD 0 10 - 1 601812747 FULL/MPX
001498 HCART TLD 0 182 - 3 418481688 FULL/MPX
001500 HCART TLD 0 188 - 1 418912608 FULL/MPX



I want script output to show first col with colon delimited in a row and delete all other columns for example output should be like

001259:001405:001473:001484:001498:001500