I want to trim this string /tmp/files/ from a variable $FILES
For example:
setenv FILES=/tmp/files/list
ONLY_L=`trim($FILES,'/tmp/files/')`
echo $ONLY_L
#should see only 'list'
I though of using sed for the job, but it look a little "ugly" because all the \ that came before the /.