I need to find out if a file or directory name contains any extension in Unix for a Bourne shell scripting.
The logic will be:
- If there is a file extension
- Remove the extension
- And use the file name without the extension
This is my first question in SO so will be great to hear from someone.