tag:blogger.com,1999:blog-8032022811235182759.post6744982686403387528..comments2024-03-23T08:25:23.254-07:00Comments on Linux Commando: Useful sed tricks to customize configuration filesPeter Leunghttp://www.blogger.com/profile/05589860210899238688noreply@blogger.comBlogger7125tag:blogger.com,1999:blog-8032022811235182759.post-34916594559737591362017-04-07T22:55:41.024-07:002017-04-07T22:55:41.024-07:00Post the link which have all the sed and Awk comma...Post the link which have all the sed and Awk command explanation with all examplesRamhttps://www.blogger.com/profile/13086275171477043187noreply@blogger.comtag:blogger.com,1999:blog-8032022811235182759.post-28579174212587196932017-04-07T22:51:01.899-07:002017-04-07T22:51:01.899-07:00I need all the sed example from scratch to till da...I need all the sed example from scratch to till dateRamhttps://www.blogger.com/profile/13086275171477043187noreply@blogger.comtag:blogger.com,1999:blog-8032022811235182759.post-81333629539485265992015-05-30T22:47:47.312-07:002015-05-30T22:47:47.312-07:00I love sed. I stink at it, but it's helped me ...I love sed. I stink at it, but it's helped me out of so many pickles. Another really cool tool that I've just started using is a port of mustache to posix shell, available here:<br /><br />https://github.com/rcrowley/mustache.sh<br /><br />Makes setting up config files so easy. Much easier than using a heredoc.Anonymoushttps://www.blogger.com/profile/08980858097741026125noreply@blogger.comtag:blogger.com,1999:blog-8032022811235182759.post-61064898248389070132015-05-28T09:46:11.141-07:002015-05-28T09:46:11.141-07:00Excellent reference on escape rules, Jay.
And yes...Excellent reference on escape rules, Jay.<br /><br />And yes, escaping the forward slash in the search string did work for me.<br /><br />/<\/IfModule>/ <br /><br />Thanks.Peter Leunghttps://www.blogger.com/profile/05589860210899238688noreply@blogger.comtag:blogger.com,1999:blog-8032022811235182759.post-58990867833545150842015-05-27T11:58:45.657-07:002015-05-27T11:58:45.657-07:00I understood why you did it the way you did. I jus...I understood why you did it the way you did. I just thought that you could also simply escape the forward slash with a backslash, and that both approaches would work. This is what I'm talking about:<br /><br />http://unix.stackexchange.com/questions/32907/what-characters-do-i-need-to-escape-when-using-sed-in-a-sh-scriptAnonymoushttps://www.blogger.com/profile/08980858097741026125noreply@blogger.comtag:blogger.com,1999:blog-8032022811235182759.post-24923226585136929242015-05-27T09:56:26.987-07:002015-05-27T09:56:26.987-07:00Jay, the answer is no. You can't write the clo...Jay, the answer is no. You can't write the closing pattern using / as the delimiter. The reason is that / is part of what you are searching. That is why I suggest using @.<br /><br />Peter Leunghttps://www.blogger.com/profile/05589860210899238688noreply@blogger.comtag:blogger.com,1999:blog-8032022811235182759.post-79958569668903607012015-05-27T09:01:42.658-07:002015-05-27T09:01:42.658-07:00Is it possible to write the closing line pattern a...Is it possible to write the closing line pattern as /<\/IfModule>/ instead?Anonymoushttps://www.blogger.com/profile/08980858097741026125noreply@blogger.com