by truth » Sun Feb 09, 2014 11:26 am
BRU wont read the content of files to be renamed.
With sed, you could use something like:
For %a in (*.txt) do @sed -n "2s/.*/ren %a &.txt/p;3q" %a|sed e
The .* matches all of Line2 as NewName with no error-checking!
Renames against pre-existing same-named files, or with illegal chars, etc, would fail.
You could certainly code all this in, but most prefer using graphical apps.
Den4b-Renamer seems to be popular for such things, but I've yet to try it.
I do know it has the ability to file-read for rename-criteria, but beyond that, I've no idea.