Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

77.Text file parser -- How to extract and join line 1 and line2 and remove/delete rest of lines in a text file?

User: editor -- 2008-05-11          << 76  78 >>
Hits: 436
Type: Text file parser   
Search all Text file parser examples
Description:
How to extract line 1 and line2 and remove rest of lines in a text file?
Input Sample:
test234235
456456
2
1
other lines ...
Output Sample:
test234235 456456
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1.press ctrl-o to open source file    
2.press ctrl-h to open replace dialog, set as follows:    
In 'Replace' page:    
1)Set 'search for pattern':

2)Set 'replace with pattern':

3. Click 'Replace', done.
Download Script:  scripts/77.rst.zip

Screenshot 1:  Replace_Window


Similar Examples:
How to batch remove/delete first and last line of many text files? (66%)
How to remove/delete all blank lines in a text file? (64%)
How to batch remove/delete first 8 lines of many files? (63%)
How to insert a blank line after every 5 lines in a text file? (62%)
How to remove/delete consecutive duplicate lines in a text file? (61%)
How to extract all lines longer than 80 characters from a text file? (61%)
How to remove/delete unnecessary line breaks in a text file? (61%)
How to insert a line after specific lines in a text file? (60%)

Check Demo of Text file parser
Keywords:
join line  extract line  join  delete  dele  delet  file parser  parse  text file parser  pars  text parser remove lines  join lines  lines join  text file search extract lines  text parser to extract lines  extract lines text  extract lines  open source text file parser