I need to remove the end of a line, so for this I think that sed will do the job but i didn't manage to do that.
here is a sample of my input:
and I need to have an output like:
To summary's: I want to remove every thing which is after the last "/" of the line.
Here is what I use so far:
sed -e 's/[\ a-z0-9A-Z\.\_\-]*$//g'
but the space are not handled correctly