Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

900.Text file parser -- How to extract specified lines in multiple excel(csv) files?

User: editor -- 2011-12-30          << 899  901 >>
Hits: 2090
Type: Text file parser   
Search all Text file parser examples
Description:
How to extract lines in specified month in multiple excel(csv) files?
I have multiple excel(csv) files, there is date in column A, how to extract all the rows with date such as 2011-12-xx?
Input Sample:
Multiple CSV files like:
2011-11-23,182,224,174,48,9,58
2011-11-24,171,268,229,58,12,38
2011-12-08,200,276,216,34,13,57
2011-12-16,134,174,138,32,8,37
2011-12-17,124,468,428,19,5,40
Output Sample:
Extract all 2011-12-xx rows and make a single CSV files:
2011-12-08,200,276,216,34,13,57
2011-12-16,134,174,138,32,8,37
2011-12-17,124,468,428,19,5,40
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 and drop multiple csv files from Windows file browser to "Batch Runner" window.
3. Click "Fast Replace" button to open "Fast Replace" dialog
4. Click "Add" to add new rules
* set "search" to 
* set "replace" to 
* click "ok"
5. check option of "Reg exp" and "Extract", uncheck option of "cross line"
6. click "Start" and select "output to single file", and enter an output file such as output.csv, done.

Screenshot 1:  Fast_Replace_Window


Similar Examples:
How to shuffle specified lines in multiple text files? (78%)
How to batch extract specified lines from a text file? (74%)
How to extract specified columns from a large pipe separated csv file? (73%)
How to extract last 100 lines from multiple files? (72%)
How to extract all specified links from a html file? (72%)
How to move the specified line to the end in multiple files? (71%)
How to extract specified lines in different section of text file? (70%)
How to extract and remove common lines from multiple files? (70%)

Check Demo of Text file parser
Keywords:
extract specified lines  month  how to extract specified lines  excel  nth  csv files  output to single file  extract lines  rules  specified line  how to extract files to csv  extract column from csv  csv extract column  extract column csv  extract csv  file and replace all in files with csv  add date to multiple files  drop column