I believe it is really easy, but I didn't find anywhere an answer for me. What I'm trying to do is:
echo file.war | sed s/.war// | rm -rf ???
to pass to the rm -rf
the output of the sed command.
Not sure if it is the right way to get this...
Thanks for your help in advance!