Get file name before the extension

Posted by ryanprayogo on Stack Overflow See other posts from Stack Overflow or by ryanprayogo
Published on 2010-05-04T16:38:44Z Indexed on 2010/05/04 16:48 UTC
Read the original article Hit count: 185

Filed under:
|
|
|

I have some files in the same directory (in UNIX filesystem) that looks like:

a.txt.name
b.xml.name
c.properties.name

a.txt.name2
b.xml.name2
c.properties.name2

How do I get the string before the name or name2 part using some shell command?

ie. the a.txt, b.xml, c.properties part?

© Stack Overflow or respective owner

Related posts about linux

Related posts about unix