Replace all backward slashes with forward slashes

echo 'C:\Windows\' | sed 's|\\|\/|g'
Use -i to edit file directly: sed -i 's|\\|\/|g' file
Sample Output

By: bugmenot
2021-07-15 20:07:37

What Others Think

echo "C:\\Windows\\" | tr '\\' '\\/
salvorapi · 9 weeks and 5 days ago
Der Befehl funktioniert in meiner bash. # echo 'C:\Windows\sonstwas\und_nochwas\' | sed 's|\\|\/|g' C:/Windows/sonstwas/und_nochwas/ # echo 'C:\Windows\' | sed 's|\\|\/|g' C:/Windows/ Wo ist dein Problem?
emmerich164 · 9 weeks and 2 days ago is an awesome io game released in 2016. Control a snake, eat glowing orbs to increase your snake's size. Your main objective is to become the longest worm in the arena and defeat all players. If your snake's head collides into any part of another snake, you will explode and the game is over. slitherio
picopa88 · 9 weeks ago
I would like to thank you for your efforts in writing this article. I hope your best work in the future too.
candymika · 8 weeks and 6 days ago
This is a very well written article. I’ll be sure to bookmark it and come back to read more of your useful info. Thanks for the post. I’ll definitely return.
aadityaagarwal · 8 weeks and 6 days ago
This is extra ordinary blog post. Thank you for sharing...bathroom waterproofing Toowoomba
johnlead · 8 weeks and 1 day ago
A cool and calm environment in our home is a necessity. To find the Best Ac in India, we will help you through this post. Moreover, it is necessary for a comfortable and relaxed living in the climatic conditions of India.
mayjos · 7 weeks and 3 days ago
How would an amazing casino sound? A casino is essentially free money for you. This must sound quite amazing and it is only natural for you to love receiving money for free. A casino is beyond any doubt something that all online casino players love, but as an experienced casino player you should definitely know more about it and as someone just starting out, knowing all about what a casino is and how to get your hands on one can definitely be a tremendous advantage for you.?????
jhonyjhonsa22 · 7 weeks ago
There are far more rogue casinos (casinos that cheat money) on the internet then the legitimate online casinos. If you accidentally sign-up and deposit your money into a rogue casino, most probably you will never have a chance with withdraw your money out from the casino. Even you have won and met the casino withdrawal requirements, the rogue casinos will have tons of reasons that stop you from getting your money into your pocket. Therefore, it is important to choose a legitimate and highly reputable online casino to play at. These online casinos normally have been verified by an independent regulator such as eCOGRA (e-Commerce Online Gaming Regulation & Assurance) along with audited payout certifications as a safe play online casino.?????
jhonyjhonsa22 · 6 weeks and 5 days ago
Very interesting blog. A lot of blogs I see these days don't really provide anything that I'm interested in, but I'm most definitely interested in this one. Just thought that I would post and let you know.
johnlead · 6 weeks and 3 days ago
Thanks for sharing. I found a lot of interesting information here. A really good post, very thankful and hopeful that you will write many more posts like this one. myloweslife
Gerlach · 6 weeks and 2 days ago
As more and more people find out and as the presence of God and his kingdom increase worldwide, there is going to be a release of the Devil’s captives like the world has never seen.deliverance ministry
Geekstation · 1 week and 5 days ago
Thirdly, break family curses from the root! Get rid of demons. Moreover, uncover hindering issues.deliverance ministry
Geekstation · 1 week and 4 days ago
If the average Christian spends thirty minutes a day in devotional time and five hours a day watching television, what is going to have the greatest influence?deliverance help
Geekstation · 1 week and 3 days ago
We may do a little censoring, but we are feeding the wrong side of our nature.deliverance prayers
Geekstation · 1 week and 3 days ago
W88.Best là website cá c??c hàng ??u châu Á và ???c c?p phép b?i t? ch?c First Cagayan Leisure & Resort Corporation (CEZA) thu?c Chính Ph? Philippines. w88
Geekstation · 1 week and 2 days ago
I was impressed with the site that you created, so memotipasi many people to be more advanced, there also kunjugi me, as a comparison battery test chamber
Geekstation · 4 days ago
Man's lives, such as uncontrolled huge amounts, definitely not while countries furthermore reefs, challenging to seismic disturbance upward perfect apply. Luxury Car Rental Miami
Geekstation · 3 days ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this? is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands

Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.


Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: