B
B. R. 'BeAr' Ederson
Hallo,
I'm looking for a *command line* utility to rename text files based on
an evaluation of the file content (using regular expressions). Of all
the utilities I know, THE Rename comes closest with its 'Replace with
file's content' option. Unfortunately, it only uses the first line of
the file. I need to use some text from the middle of the file. (Even
from the middle of a line, coming to this...)
The files I'd like to rename are derived from a large file split into
chapters using the CSplit utility (http://unxutils.sourceforge.net).
So it would be a solution, too, if someone knew another Split program
which supports RegEx naming of the output files. (Based on file content,
of course.)
No need to suggest scripting, though. I'll do a quick hack, anyway, if
nobody comes up with a better solution. ;-)
Thanks,
BeAr
I'm looking for a *command line* utility to rename text files based on
an evaluation of the file content (using regular expressions). Of all
the utilities I know, THE Rename comes closest with its 'Replace with
file's content' option. Unfortunately, it only uses the first line of
the file. I need to use some text from the middle of the file. (Even
from the middle of a line, coming to this...)
The files I'd like to rename are derived from a large file split into
chapters using the CSplit utility (http://unxutils.sourceforge.net).
So it would be a solution, too, if someone knew another Split program
which supports RegEx naming of the output files. (Based on file content,
of course.)
No need to suggest scripting, though. I'll do a quick hack, anyway, if
nobody comes up with a better solution. ;-)
Thanks,
BeAr