Complex string encoding with sed

cat index.html | sed 's|"index.html%3Ffeed=rss2"|"http://dynamic-blog.hemca.com/?feed=rss2.html"|g'
Pipe | avoid escaping occurences problems in using sed and make it easier to use

2
By: strzel_a
2010-11-05 20:27:21

What Others Think

This command seems to be complex to me. It had been good if the programmer might have made it a little simple to understand this command. The non-computer people like article writer who works for cv-writers.org.uk reviews writing service kind of blogs for them it will easy to understand this command and use of it.
MattiePowlowski · 29 weeks and 1 day ago
Interesting solution, author you deserve praise. It probably seems that it is no longer possible to describe it with less code, but I became interested and I found a video on YouTube in which some programmer wrote a solution to the same problem in one line! Unfortunately, I already remember the name of the video, but I remembered for sure that the author had about 76 thousand subscribers on the channel, which makes me think that their authors used https://soclikes.com/buy-youtube-subscribers to buy subscribers.
ChrisCampbell · 25 weeks and 1 day ago
Interesting solution, author you deserve praise. It probably seems that it is no longer possible to describe it with less code, but I became interested and I found a video on YouTube in which some programmer wrote a solution to the same problem in one line! Unfortunately, I already remember the name of the video, but I remembered for sure that the author had about 76 thousand subscribers on the channel, which makes me think that their authors used https://soclikes.com/buy-youtube-subscribers to buy subscribers.
ChrisCampbell · 25 weeks and 1 day ago
This site was working great and having great knowledge of real estate problems helped me a lot. Here you need to Open WeBuyHousesFortLauderdale.com to sell your house because they have cash buyers ready to buy reliable houses. I appreciate the author who share this unique info with us.
JoshuaJoshua · 18 weeks and 6 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: