10-16-2008
333,
0
Join Date: Oct 2007
Last Activity: 28 August 2012, 1:26 AM EDT
Posts: 333
Thanks Given: 2
Thanked 0 Times in 0 Posts
formatting lines in a particular fashion
i have some 100 of lines from a script o/p into a file called naveed.txt
below some of the lines:
1-GH32X, CC, AMR, Number of Intervals Not Inserted: 1 / 95
1-150KP1, CC, AMR, Number of Intervals Not Inserted: 1 / 96
1-VWEMR, CC, AMR, Number of Intervals Not Inserted: 1 / 98
1-15HM1A, CC, AMR, Number of Intervals Not Inserted: 1 / 99
1-153PIV, CC, AMR, Number of Intervals Not Inserted: 3 / 99
1-M7U4D, CC, AMR, Number of Intervals Not Inserted: 1 / 229
1-14ZL4V, CC, AMR, Number of Intervals Not Inserted: 1 / 96
----------------------------------------------------------------------
Actually my requirement is to get these line in the below fashion
1-GH32X|CC|AMR|Number of Intervals Not Inserted: 1 / 95
1-150KP1|CC|AMR|Number of Intervals Not Inserted: 1 / 96
1-VWEMR|CC|AMR|Number of Intervals Not Inserted: 1 / 98
1-15HM1A|CC|AMR|Number of Intervals Not Inserted: 1 / 99
1-153PIV|CC|AMR|Number of Intervals Not Inserted: 3 / 99
1-M7U4D|CC|AMR|Number of Intervals Not Inserted: 1 / 229
1-14ZL4V|CC|AMR|Number of Intervals Not Inserted: 1 / 96
Any help will be appreciated. thanks in advance