Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

1124.Text file parser -- How to extract last 100 lines from multiple files?

User: Verotiana -- 2013-09-02          << 1123  1125 >>
Hits: 1710
Type: Text file parser   
Search all Text file parser examples
Description:
How to extract last 100 lines from multiple files?
Input Sample:
line1
line2
...
lineN-99
lineN-98
...
lineN
Output Sample:
lineN-99
lineN-98
...
lineN
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1. open "Tools->Batch Runner" menu
2. drag multiple text file to "Batch Runner" window
3. check option of "change output folder", and select a new folder for output file
4. click "Fast Replace" button to open "Fast Replace" dialogue
5. click "add" to add new rules:
* set 'search' to: 
* set 'replace' to: 
* click ok
6. make sure "reg exp", "cross line" and "extract" flag are checked
7. click "start", all files will be extract to the new folder with original filename.

Screenshot 1:  Fast_Replace_Window


Similar Examples:
How to extract the last non-blank line from multiple text files? (80%)
How to extract and remove common lines from multiple files? (77%)
How to extract all image links from multiple html files?  (76%)
How to extract specified lines in multiple excel(csv) files? (72%)
How to extract all lines that contain "abc" from multiple files? (71%)
How to import a list of rules to replace multiple files? (69%)
How to remove/delete extra blank lines in multiple text files? (69%)
How to extract first 55 characters form multiple .txt.files? (69%)

Check Demo of Text file parser
Keywords:
original filename  extract last  rules  new folder  cross line  output folder  100  last  las  rule  select 100 lines from text file  extract last lines  extract lines last  extract all lines start with  search and extract lines from text files  extract last line  extract multiple lines of text from multiple text files  add text to last line