Loading ...
Sorry, an error occurred while loading the content.

27473Parsing generic file

Expand Messages
  • Rajagopal
    Jul 24, 2013
    • 0 Attachment
      Guys, I need help with this.

      I need to write a perl program that should output a file. Parameters are:

      SomePerl.pl infile outfile 8 5 10.

      infile can be any standard file with a header record with a delimiter. Columns (numbers, names and position) can change from file to file.

      outfile is the output I want with the following:

      where asset_id, asset_tag and asset_cl is mapped to columns 8, 5 and 10. Column header in the file may not be exactly named as asset_id, asset_tag or asset_cl. Output file row should look like:


      I am new to perl and how would I achieve this?

      Appreciate your help.
    • Show all 2 messages in this topic