Escape forward slashes in a variable

${path//'/'/'\/'}
For example path="/etc/apt/sources.list"; echo ${path//'/'/'\/'} will print \/etc\/apt\/sources.list
Sample Output
\/etc\/apt\/sources.list

1
2012-01-27 02:50:01

What Others Think

Is essay help online legit? If you are not able to write your essay on your own but have questions about how to proceed or have some corrections to make then it might be time for you to seek the help of essay consultants. The question is not if essay consultants are legit, since they can definitely provide the help that you need to write an essay. The real question is; how much should you pay? The following are the factors that determine your price and how much you should expect to get in exchange for your hard work. What is essay help and where do I find it? You can find essay help on most of the popular Academic writing Help websites and most of the times those sites are supported by the university or colleges that you are enrolling in. The only way to really know how much you should pay for professional academic writing help would be to talk to a few professors at your school and see how much they actually charge students for their academic writing help https://essaywritinghelp.pro/.Do I have to pay for the essay help that I receive? Only the best courses are offered and there is no catch involved in this situation. If you feel like you got yourself into a serious bind with your assignments and you don't know where else to turn then a great idea is to look into getting some essay help from either the writer himself or the writer's assistance program. The writers' assistance program may cost a little more but it could end up saving you hundreds of dollars in the long run and that money can easily be used towards your next semester's tuition.
theronmad · 14 weeks and 3 days ago
Pretty company https://paperswriting.services/ definitely knows what perfection means. An absolute understanding of quality, customer – oriented management and reasonable prices. They offer all possible services any student might need: technical writing, academic writing, copywriting, website content, science papers, test and even IT projects. Flexible discount system and participation in loyalty programs.
MyrtoUzuni · 10 weeks ago
Good day guys! Who can write my essay now? I'm really happy that my classmate adviced me the place like this writing company, where I can buy essays online and read cool topics. Gorgeous grades for my assignments means that you, writers, did an outstanding essay. I'm so proud of being the best learner of the year thanks to their work.
bojo2112jon · 9 weeks and 2 days ago
???????????????????????????????????????????????????????????????????????????????????????????????? ??????“????”??? ??????“????”?????????“??????” ??? “????”???????????????“????”??“????”???????150?????????????????????????????????????????????????????????????“????”????????????????17??????????“????”?????????????????“???”(Statistics)?
illianna · 5 weeks and 1 day ago
Hey! I have some great news for you! When your deadline is coming and you need to write some essay papers, you can use our online writing company. It is really suitable when you can choose the appropriate topic for your assignment and get completed professional essay. So, click on this site and discover this information wright here!
bojo1991jon · 4 weeks and 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?

commandlinefu.com 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.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

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: