Search Results

Search: Posts Made By: vish_indian
19,215
Posted By vish_indian
Maybe I am not getting what you are trying to...
Maybe I am not getting what you are trying to say. Could you explain it a bit more?

Faroe Island is being treated as 1 below.
Alpha,121,island
Alpha Zulu,21,island
Faroe Island,20,island...
19,215
Posted By vish_indian
sort -k 1,3 is doing just that. eg, for input ...
sort -k 1,3 is doing just that. eg, for input
Faroe Island 20 island
japan 19 test
japan 19 airline
Alpha Zulu 21 island
Alpha 121 island

Japan occurs twice in first column, so while sorting,...
19,215
Posted By vish_indian
cat test Faroe Island 20 island japan 19 test...
cat test
Faroe Island 20 island
japan 19 test
japan 19 airline
Alpha Zulu 21 island
Alpha 121 island

Try this:
sed '
s/ \([0-9]\)/,\1/
s/\([0-9]\) /\1,/
' test | sort -k1,3
...
Showing results 1 to 3 of 3

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