I am working on a script that will read the name of a java app and rename the file to the name of the app. This is an effort to organize about 2500 programs. I know how to read the name of the program, but the command I'm using to rename the file puts a '?' just before the extension. Take a look:
Code:
mv sample.jar `awk '/MIDlet-Name:/ {print $2}' MANIFEST.MF`.jar
This turns sample.jar into 'name of app'?.jar
So what do I need to do to get rid of the '?' ? This is the first shell script I've ever written in my life, so bear with me here...
