User: Verotiana -- 2016-02-17 << 1344 1346 >> |
Hits: 2434 |
Type: Advanced search and replace |
Search all Advanced search and replace examples |
Description: |
How to remove lines where the last non-empty column does not match the 4th column. |
Input Sample: |
13:26.704, 21, E, R, R, , , , , , , , , , , , 13:28.620, 22, E, R, R, , , , , , , , , , , , 13:30.586, 23, E, R, C, , , , , , , , , , , , 13:30.622, 23, E, R, C, R, , , , , , , , , , , 13:32.624, 24, E, R, C, , , , , , , , , , , , 13:32.630, 24, E, R, C, D, , , , , , , , , , , 13:32.636, 24, E, R, C, D, R, , , , , , , , , , |
Output Sample: |
13:26.704, 21, E, R, R, , , , , , , , , , , , 13:28.620, 22, E, R, R, , , , , , , , , , , , 13:30.622, 23, E, R, C, R, , , , , , , , , , , 13:32.636, 24, E, R, C, D, R, , , , , , , , , , |
Answer: |
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 unit' to 'Line' * set 'If =>' to: 3. click 'replace', done. |
Screenshot 1: Replace_Window |
Similar Examples: |
How to remove duplicate column in each line? (59%) How to remove lines from file B.csv with first column come from file A.csv? (57%) How to remove all but first lines whose second column is bigger than 6? (56%) How to extract line if the 1st column is "a2" and the 2nd column is "b2"? (56%) How to mark out lines that do not match pre-defined condition? (55%) How to remove any word that does not contain character @? (55%) How to multiply the first column with the rest of columns in one file? (55%) How to remove paragraphs with different 4th column and last column in second line? (54%) |
Check Demo of Advanced search and replace |
Keywords: |
empty 4th non the last remove lines last move lines las how to remove line match column remove empty remove last 3 lines last lines remove remove last lines remove last 2 lines remove last column remove last column file last lines |