codesearcher
Technical User
Hi
I need a unix script to sort & group the below record based on the last value of the line
eg: In below file, i should sort & group all 1's and next 2's
P0001|Jim|1001|1
P0002||1002|abcdne|2
P0003|Jack|1001|test|csx|1
P0003|Till|1003|dlf|2
P0010|Tusk|1011|xyz|unites|shift|1
I am struck after using this statement awk -F'|' '{ printf $0}'
Any help is welcome
I need a unix script to sort & group the below record based on the last value of the line
eg: In below file, i should sort & group all 1's and next 2's
P0001|Jim|1001|1
P0002||1002|abcdne|2
P0003|Jack|1001|test|csx|1
P0003|Till|1003|dlf|2
P0010|Tusk|1011|xyz|unites|shift|1
I am struck after using this statement awk -F'|' '{ printf $0}'
Any help is welcome