Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

1047.Text sort -- How to sort lines that started with IP address?

User: naeem -- 2013-01-24          << 1046  1048 >>
Hits: 1712
Type: Text sort   
Search all Text sort examples
I have a list if IP addresses in a text file 5000 or so. Some have text after them some do not. There is always a space between the last ip octet and the word (if any), then a CR. I just want to sort them. I tried your IP example but it did not give a full sort.
Input Sample: Netherlands Land der IP:  Nigeria Netherlands Canada Russian Federation korea  : iran
Output Sample:
sorted as best by IP address
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1. ctrl-o open text file
2. ctrl-h open 'replace', dialogue
* set 'replace with pattern' to:

* click 'settings' tab, set input delimiter to 'other", and set following entry to:

3. click 'replace', done.

Screenshot 1:  Replace_Window

Screenshot 2:  Replace_Settings_Window

Similar Examples:
How to batch remove/delete lines started by "address:"? (65%)
How to delete lines that start with duplicate text? (63%)
How to remove all lines that shorter than 10 characters? (61%)
How to add italic tags for all lines that started with hash #? (59%)
How to remove all blank lines and lines that started with Name: or Addr:? (59%)
How to add first line to the start of each line? (57%)
How to sort all lines of ip addresses in a text file? (57%)
How to extract all lines that contain words A and B and C? (57%)

Check Demo of Text sort
500  give  oct  lines that start  sort lines  full  addresses  ip address  sort line  delimiter  octet to text  sort ip addresses text file  sort ip addresses in text file  sort text file ip addresses  last space  sort ip address  sort ip address text file  word sort example