0
votes
1answer
85 views

How to extract the filename without the extension from a full path?

I'm trying to right my first bash script, and at one point a filename is passed to the script as $1. I need to extract the file name without the extension. Currently, I'm assuming that all extensions ...
2
votes
2answers
137 views

How to add extensions to a lot of files using content of each file?

I've got over 10,000 files that don't have extensions from older versions of the Mac OS. They're extremely nested in file structure, and they also have all sorts of strange formatting and characters. ...
5
votes
2answers
3k views

How to extract a complete list of extension types within a directory?

Within a directory, and recursively within it's sub-directories, meaning every directory within a directory is processed, how do I compile a complete list of unique extensions within the directory? ...
1
vote
1answer
2k views

How to extract the filename extension out of %f in script?

The windows %%f returns the full name of the file as 'filename.ext' e.g. for /r %%f in (*.wav) do echo %%f Is there a way to extract the filename without the extension from %%f?
3
votes
1answer
2k views

How to set a default file extension for a specific download?

I'm using chrome web browser and when I download a file it saves the file with .jsp extension. Everytime I have to change the extension to my desired extension (i.e. .ica). Just setting the default ...
3
votes
4answers
8k views

Input Error: There is no script engine for file extension “.vbs”

I keep getting it in command prompt, any idea why and how I may resolve the issue? Windows 7 Ultimate 32-Bit