CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Need a Custom or Prewritten Perl Program?: I need a program that...:
logic/script needed

 



razorBlades
New User

Feb 16, 2009, 4:56 AM

Post #1 of 1 (1633 views)
logic/script needed Can't Post

Below is my input file,

AAA BBB CCC3:DDD*4:EEE*8:FFF*250:GGGG*33:H
AAA BBB CCC3:DDD*4:EE*8:FFF*250:GG*33:H
AAA BBB CCC3:DD*4:EEE*8:FFF*250:GGGGGG*33:HH

required output

Code
I need to convert to, 
(null) (null) (null) 3 4 8 250 33
AAA BBB CCCC DDD EEE FFF GGGG H
AAA BBB CCCC DDD EE FFF GG H
AAA BBB CCCC DD EEE FFF GGGGGG H


*4:, *8:, *250: in general "*/d+:" is the column delimiter, which has to be converted into column headings.
This is not a fixed length file.

In the input,
AAA BBB CCC3:DD
The first two columns are delimited by a tab and the third one by "3:", which can be ignored as of now.

and this perl program runs on windows

thanx a ton for your comments.


(This post was edited by razorBlades on Feb 16, 2009, 5:01 AM)

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives