I want to read from standard input, delete all '/', and write the output to standard output. So, a file that contain:
/ab1/1a6/ 17
/a/b/1
will have output:
ab11a6 17
ab1
I think it should be something like this:
read input
sed -r 's/\/[^\/]*\/[^\/]*\/.*/"I not sure what do I need to put in here"/g'
echo $input
I don't really know what do I need to put the the "replace" section. any suggestion?