Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

999.Replace text in multiple files -- How to insert a keyword only at first line of multiple text files?

User: rahul -- 2012-08-27          << 998  1000 >>
Hits: 4094
Type: Replace text in multiple files   
Search all Replace text in multiple files examples
Description:
insert a keyword only at first line of multiple text file content
Input Sample:
lets you can take a example of this like title is at the start of file content. 
like this title is copied in all selected files.
Output Sample:
title  
 
lets you can take a example of this like title is at the start of file content. 
like this title is copied in all selected files.
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 files from windows file browser to "batch runner" window 
3. click "fast replace"  
4. click "add" to add new rule 
* set "search" to:  
* set "replace" to:  
* click "ok" 
5. make sure "reg exp" option and "cross line" option are selected 
6. click "start", done.

Screenshot 1:  Fast_Replace_Window


Similar Examples:
How to replace a word only one time in multiple text files? (75%)
How to insert a text file into the beginning of multiple text files? (71%)
How to extract the last non-blank line from multiple text files? (70%)
How to add words at the begin and end of first line in multiple files? (70%)
How to extract and remove common lines from multiple files? (66%)
How to reverse the order of the first column in text file? (65%)
How to move the last line to the beginning for multiple text files? (65%)
How to take words from first line and insert into text file randomly? (64%)

Check Demo of Replace text in multiple files
Keywords:
keyword  key  title  cross line  file content  content  how to insert  insert  rule  first line  batch insert new first line in text  insert only first line in text file  insert keyword  search multiple files keyword  windows batch file insert a line multiple files  insert line in multiple files windows  insert text at first line of multiple files  search only in first line in multiple files