M
martin
I have a newbie question about extracting extensions of file names;
bascially I have ful path name to some files with no, single, or
multiple extensinos, for example:
/dir1/dir2/.../dirN/filename.ext1.ext2.ext3
The extensions coud be anything, I just used ext1, ext2, so on.
I like to extraxt two things:
1- all the extensions up to the last one , in this case
ext1.ext2 (without .ex3)
Now if some of the interim extensions are numerical, I like to skip
them and get all the extensions exclusing the n umerical ones.
2- How can I extract the full pathname up to but not including last
extension, i.e. to get:
/dir1/dir2/.../dirN/filename.ext1.ext2
Thanks. Martin
bascially I have ful path name to some files with no, single, or
multiple extensinos, for example:
/dir1/dir2/.../dirN/filename.ext1.ext2.ext3
The extensions coud be anything, I just used ext1, ext2, so on.
I like to extraxt two things:
1- all the extensions up to the last one , in this case
ext1.ext2 (without .ex3)
Now if some of the interim extensions are numerical, I like to skip
them and get all the extensions exclusing the n umerical ones.
2- How can I extract the full pathname up to but not including last
extension, i.e. to get:
/dir1/dir2/.../dirN/filename.ext1.ext2
Thanks. Martin