Removing Text from a Shell String
Hey,
Ive got a very simple question. I have a small script that has a varaible ( $mapfile ) that will return something like foo.map (can be also foobar.map, buzzle.map, shodown.map, blah.map, you get the point) Now how do i get it to remove the .map part? Perferably by setting a new variable so i dont mess anything currently in the script. Thanks a bunch. |
nomapfile=${mapfile%.map}
e.g. Code:
#!/bin/sh |
Thank you very much, it worked without any problems :)
|
All times are GMT -5. The time now is 05:06 AM. |