Can someone help me on perl script for "how to sort flat file on third field & stored sorted output in the output flat file"?
In this example - I have input file with unique key column (third field)& I want sorted output get stored in the output file.
e.g.
Input File ->
1780437|20110705|0000007704000000000000004888|7704|48881|PE|08/12/2008 11:38:54|0|1000.00
1780437|20110705|0000007704000000000000004882|7704|48882|PE|08/12/2008 11:38:54|0|1000.00
1780437|20110705|0000007704000000000000004889|7704|48887|PE|08/11/2008 11:38:54|0|1000.00
1780437|20110705|0000007704000000000000004881|7704|48888|PE|08/12/2008 11:38:54|0|1000.00
Expected Output File ->
1780437|20110705|0000007704000000000000004881|7704|48888|PE|08/12/2008 11:38:54|0|1000.00
1780437|20110705|0000007704000000000000004882|7704|48882|PE|08/12/2008 11:38:54|0|1000.00
1780437|20110705|0000007704000000000000004889|7704|48887|PE|08/11/2008 11:38:54|0|1000.00
1780437|20110705|0000007704000000000000004888|7704|48881|PE|08/12/2008 11:38:54|0|1000.00