User: Roger -- 2015-12-20 << 1332 1334 >> |
Hits: 2939 |
Type: Text file parser |
Search all Text file parser examples |
Description: |
How to pick up paired lines with specified rules in a text files? Lines with same content, but ended with chs.txt and eng.txt respectively are considered to be a pair. |
Input Sample: |
H:mirror-037139729dz-lawcu-bdrip-xvid-cd1.chs.txt H:mirror-037139729dz-lawcu-bdrip-xvid-cd1.cht.txt H:mirror-037139729dz-lawcu-bdrip-xvid-cd1.eng.txt H:mirror-037138026dz-lawcu-bdrip-xvid-cd1.txt H:mirror-037139729dz-lawcu-bdrip-xvid-cd2.chs.txt H:mirror-037139729dz-lawcu-bdrip-xvid-cd2.cht.txt H:mirror-037139729dz-lawcu-bdrip-xvid-cd2.eng.txt |
Output Sample: |
H:mirror-037139729dz-lawcu-bdrip-xvid-cd1.chs.txt H:mirror-037139729dz-lawcu-bdrip-xvid-cd1.eng.txt H:mirror-037139729dz-lawcu-bdrip-xvid-cd2.chs.txt H:mirror-037139729dz-lawcu-bdrip-xvid-cd2.eng.txt |
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 'search for pattern' to: * set 'replace with pattern' to: * set 'if' to: * uncheck 'print unmatched unit' option 3. click 'replace', done. Note: if you want to get the file list directly, you can ignore step1, and set 'input file' to: |
Screenshot 1: Replace_Window |
Similar Examples: |
How to change the number in each line to specified order in a text file? (71%) How to extract all lines with specified date range from text file? (70%) How to change columns in each line to specified order in text file? (70%) How to remove lines containing specified words in a text file? (69%) How to insert a line after specific lines in a text file? (69%) How to extract multiple lines in specified order from many text files? (68%) How to make search and replace only in specified lines in text file? (66%) How to batch extract specified lines from a text file? (66%) |
Check Demo of Text file parser |
Keywords: |
index var ignore rules same dir unmatched unmatch input pick index file ignore lines txt replace rules same files replace text pick search and replace text files parser txt file parser search same file |