sed command
Hi,
Can you please tell how how can i use sed command so that the result can show like this. I wan to give space after every "/". Please help me in this Actual: /var/htm/www/g/dsfsfd/wqwqawed/acac/ Result : /var/ htm/ www/ g/ dsfsfd/ wqwqawed/ acac/ |
Hi,
Code:
echo "/var/htm/www/g/dsfsfd/wqwqawed/acac/" | sed 's%/%/ %g' This does what you asked, but your example "Result" does not put a space after the first "/". Evo2. |
I am guessing this is a made up example, but still struggle to see any practicality to performing the task :(
|
Thinking laterally, could be a homework task to 'encourage' students to discover that you don't have to use '/' as the separator in sed ... ?
|
Solved
|
See the Thread Tools at the top of question to mark as SOLVED.
|
All times are GMT -5. The time now is 06:07 PM. |