I've got a utility which outputs certain filenames in the following format:
/dir1/dir2/dir3/dir4/line_name__________more_info.extension
/dir1/dir2/dir3/line_name__________more_info.extension
^^^^^^^^^
I need to strip out just the line_name part (without the trailing underscores). The line name COULD be preceeded by any number of subdirectories.
The line_name__________ will always total 30 chars in length.
(line_name, dir*, more_info, extension are all variables)
Thanks....
/dir1/dir2/dir3/dir4/line_name__________more_info.extension
/dir1/dir2/dir3/line_name__________more_info.extension
^^^^^^^^^
I need to strip out just the line_name part (without the trailing underscores). The line name COULD be preceeded by any number of subdirectories.
The line_name__________ will always total 30 chars in length.
(line_name, dir*, more_info, extension are all variables)
Thanks....