Search Results

Search: Posts Made By: girish119d
3,108
Posted By girish119d
sorry for the repost as this is my first post. ...
sorry for the repost as this is my first post.
Perl solution seems to work but i can not use due to limitation on my server.
3,108
Posted By girish119d
Yes you are right this will not work on solaris ...
Yes you are right this will not work on solaris

awk '{ split($2, A, "|");asort(A);$2="";for(N=1; A[N]; N++) $2=$2"|"A[N];print $1 " " substr($2, 2) }' test123.dat

awk: illegal reference to...
3,108
Posted By girish119d
sorry i did not mention early, I can't use perl...
sorry i did not mention early, I can't use perl on my system.
It has to be awk or sed .

again sorry for not clearing that up before and thanks for solution.
3,108
Posted By girish119d
solution to sort second columns in file.
File will have two columns key column and second column which is pipe separated and that need to be sorted.

Below is input file.


1, D|B|A|C
2, C|A|B
3, E|A|F|G|H|D|B|C
4, A|B|D|C|F
...
3,108
Posted By girish119d
sort second columns in file.
File will have two columns key column and second column which is pipe separated and that need to be sorted.

Below is input file.


1, D|B|A|C
2, C|A|B
3, E|A|F|G|H|D|B|C
4, A|B|D|C|F
...
Showing results 1 to 5 of 5

 
All times are GMT -4. The time now is 04:30 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy