Find the answer to your Linux question:
Results 1 to 2 of 2
How to changed the attached .pl script to get the following output from the attached sample text files. pls take backup of the sample files: files.txt and file2.txt to work ...
  1. #1
    Linux Newbie Sangal-Arun's Avatar
    Join Date
    May 2006
    Location
    Gurgaon, India + Denver Colorado USA
    Posts
    101

    sort in perl not running..as desired

    How to changed the attached .pl script to get the following output from the attached sample text files.

    pls take backup of the sample files: files.txt and file2.txt to work on those files.

    Desired output after running the .pl script on files.txt should be:

    For files.txt file:
    /vob/efs/EFare/Database/Filer/AFares/afares.filer.c@@/main/pub-int/jul0908-dev/1
    /vob/efs/EFare/Database/Filer/AFares/afares.filer.c@@/main/pub-int/jul0908-dev/2
    For file2.txt file:
    Code:
    /vob/efs/EFare/Database/Filer/AFares/afares.filer.c@@/main/pub-int/jul0908-dev/1
    /vob/efs/EFare/Database/Filer/AFares/afares.filer.c@@/main/pub-int/jul0908-dev/2
    /vob/efs/EFare/Server/bbq.pl@@/main/pub-int/jul0908-dev/1
    /vob/efs/EFare/Server/context_fields/faredisplay.pl@@/main/pub-int/jul0908-dev/1
    /vob/efs/EFare/Server/faredisplay/faredisplay.pl@@/main/pub-int/jul0908-dev/1
    /vob/efs/EFare/Server/faredisplay/faredisplay.pl@@/main/pub-int/jul0908-dev/2
    /vob/efs/EFare/Server/faredisplay/faredisplay.pl@@/main/pub-int/jul0908-dev/3
    /vob/efs/EFare/Server/faredisplay/faredpout.pl@@/main/pub-int/jul0908-dev/1
    /vob/efs/EFare/Server/faredisplay/faredpout.pl@@/main/pub-int/jul0908-dev/2
    /vob/efs/EFare/Server/faredisplay/faredprec3.pl@@/main/pub-int/jul0908-dev/1
    /vob/efs/EFare/Server/faredisplay/faredprec3.pl@@/main/pub-int/jul0908-dev/2
    /vob/efs/EFare/Server/faredisplay/faredprule.pl@@/main/pub-int/jul0908-dev/1
    /vob/efs/EFare/Server/faredisplay/faredprule.pl@@/main/pub-int/jul0908-dev/2
    /vob/efs/EFare/Server/faredisplay/faredprule.pl@@/main/pub-int/jul0908-dev/3
    /vob/efs/EFare/Server/faredisplay/galileoKLR.pl@@/main/pub-int/jul0908-dev/1
    /vob/efs/EFare/Server/faredisplay/galileoKLR.pl@@/main/pub-int/jul0908-dev/2
    /vob/efs/EFare/Server/faredisplay/intlfaredpout.pl@@/main/pub-int/jul0908-dev/1
    /vob/efs/EFare/Server/fareretrieval.pl@@/main/pub-int/jul0908-dev/1
    /vob/efs/EFare/Server/fareretrieval.pl@@/main/pub-int/jul0908-dev/2
    /vob/efs/EFare/Server/fat.pl@@/main/pub-int/jul0908-dev/1
    /vob/efs/EFare/Server/fq_inputKLR.pl@@/main/pub-int/jul0908-dev/1
    /vob/efs/EFare/Server/fq_inputKLR.pl@@/main/pub-int/jul0908-dev/2
    /vob/efs/EFare/Server/fq_inputKLR.pl@@/main/pub-int/jul0908-dev/3
    /vob/efs/EFare/Server/fq_inputKLR.pl@@/main/pub-int/jul0908-dev/4
    /vob/efs/EFare/Server/fq_inputKLR.pl@@/main/pub-int/jul0908-dev/5
    /vob/efs/EFare/Server/fq_inputKLR.pl@@/main/pub-int/jul0908-dev/10
    /vob/efs/EFare/Server/fq_inputKLR.pl@@/main/pub-int/jul0908-dev/20
    /vob/efs/EFare/Server/fq_responseKLR.pl@@/main/pub-int/jul0908-dev/1
    /vob/efs/EFare/Server/fq_responseKLR.pl@@/main/pub-int/jul0908-dev/2
    /vob/efs/EFare/Server/Library/libdata/c.pl@@/main/pub-int/jul0908-dev/1
    /vob/efs/EFare/Server/Library/libdata/c.pl@@/main/pub-int/jul0908-dev/2
    /vob/efs/EFare/Server/Library/libdata/libdata.pl@@/main/pub-int/jul0908-dev/1
    /vob/efs/EFare/Server/Library/libdata/table999.prolog.c@@/main/pub-int/jul0908-dev/1
    /vob/efs/EFare/Server/Library/libdata/table999.prolog.c@@/main/pub-int/jul0908-dev/2
    Attached Files Attached Files
    Last edited by Sangal-Arun; 07-16-2008 at 09:42 PM. Reason: changing desired output within Code area.
    Brgds,

    ARUN SANGAL
    SCM: 1- 720 251 9962
    Email: sangal.ak04@gmail.com
    Email: sangal_ak04@yahoo.com

  2. #2
    Linux Newbie Sangal-Arun's Avatar
    Join Date
    May 2006
    Location
    Gurgaon, India + Denver Colorado USA
    Posts
    101

    Thumbs up

    Here is the solution.

    PS attached .pl file (updated version).
    Attached Files Attached Files
    Brgds,

    ARUN SANGAL
    SCM: 1- 720 251 9962
    Email: sangal.ak04@gmail.com
    Email: sangal_ak04@yahoo.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...