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: 2103
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 remove/delete extra blank lines in multiple text files? (60%)

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