Search Results

Search: Posts Made By: Subbeh
8,955
Posted By Subbeh
Did you try the sort command directly on your...
Did you try the sort command directly on your input file instead of implementing it in your while loop?


$ cat file
192.168.1.1
192.168.2.2
192.168.1.3
192.168.1.2
192.168.11.1
192.168.1.4...
8,955
Posted By Subbeh
What is your input data and which OS are you...
What is your input data and which OS are you running? What you posted doesn't correspond with the input you posted earlier. The sort command doesn't change the data, only the order in which it's...
8,955
Posted By Subbeh
Try this: sort -t . -k 3,3n -k 4,4n file
Try this:
sort -t . -k 3,3n -k 4,4n file
Showing results 1 to 3 of 3

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