How do I remove a file extension in Unix?

Thu Ha

New member
How do I remove a file extension in Unix?
Answer
To simply remove the extension you can explicitly pass in an empty string as an argument. With the above command all files with . gz. tmp extension in the current folder will be renamed to filename.
 

Tìm kiếm

Back
Top