Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

422.Batch file rename -- How to batch rename files with the first word of file contents?

User: editor -- 2010-02-16          << 421  423 >>
Hits: 2753
Type: Batch file rename   
Search all Batch file rename examples
How to batch rename files with the first word of file contents?

I have some files that has blank line in first line or first 2 lines, is there any way that rename this files with the first word appear in the test files?
Input Sample:
Output Sample:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1. ctrl-B open 'Batch Runner' window
2. drag files from windows 'File Browser' and drop to 'Batch Runner' window
3. check option of 'set output filename', and change the following entry to be:

to avoid filename duplicate, you can add 3 digit sequence number as prefix, like:

4. check preview of filename at the 'output file' column, and click 'File Rename' button, all files will be renamed.

Screenshot 1:  Batch_Runner_Window

Similar Examples:
How to batch rename files to the first date found in the files? (80%)
How to batch rename files to the specified pattern found in file content? (80%)
How to rename files to the first and last line of file contents? (80%)
Is there a way to batch rename files with the first line of the file content? (79%)
How to batch rename files with the first line of file content as new file name? (79%)
How to batch rename text files with random line from file contents? (78%)
How to batch rename files to the first 8 characters of the second line of file content? (77%)
How to batch rename files by removing first 3 characters of filename? (72%)

Check Demo of Batch file rename
renamed  prefix  contents  sequence number  fix  blank line  digit  dig  duplicate  duplicat  word rename file to first line  rename word file from first line  batch rename word files from first line  batch rename word file first line  rename file first line windows  word file rename first line  windows rename sequence number  add prefix line batch