<html><head><title></title></head><body><p dir="ltr">Haha. I found it this afternoon, printed it out and it's sitting on the seat next to me in my car right now.</p>
<br><br><div class="gmail_quote">On May 14, 2015 5:20:39 PM EDT, Peter Kukla <fruviad@yahoo.com> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div style="color:#000; background-color:#fff; font-family:times new
roman, new york, times, serif;font-size:16px"><div
id="yui_3_16_0_1_1431638336401_2871" dir="ltr">I've seen others
recommend sed, but I haven't seen any recommendations for the following
tutorial yet:</div><div id="yui_3_16_0_1_1431638336401_2872"
dir="ltr"><br /></div><div id="yui_3_16_0_1_1431638336401_2824"
dir="ltr"><a id="yui_3_16_0_1_1431638336401_2823"
href="http://www.grymoire.com/Unix/Sed.html">http://www.grymoire.com/Unix/Sed.html</a><br
/></div><div id="yui_3_16_0_1_1431638336401_2873" dir="ltr"><br
/></div><div id="yui_3_16_0_1_1431638336401_2874" dir="ltr">Hope I'm
not duplicating someone else's answer, but that's an excellent
resource.</div><div id="yui_3_16_0_1_1431638336401_2875" dir="ltr"><br
/></div><div id="yui_3_16_0_1_1431638336401_2876" dir="ltr"><br
/></div><div id="yui_3_16_0_1_1431638336401_2877" dir="ltr">-peter<br
/></div><div
id="yui_3_16_0_1_1431638336401_2879"><span></span></div><br />
<div id="yui_3_16_0_1_1431638336401_2771" style="font-family: times new roman, new york, times, serif; font-size: 16px;"> <div id="yui_3_16_0_1_1431638336401_2770" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div id="yui_3_16_0_1_1431638336401_2769" dir="ltr"> <hr size="1" /> <font id="yui_3_16_0_1_1431638336401_2772" face="Arial" size="2"> <b><span style="font-weight:bold;">From:</span></b> Steve VanSlyck <s.vanslyck@postpro.net><br /> <b><span style="font-weight: bold;">To:</span></b> colug-432@colug.net <br /> <b><span style="font-weight: bold;">Sent:</span></b> Thursday, May 14, 2015 2:45 PM<br /> <b><span style="font-weight: bold;">Subject:</span></b> [colug-432] Tutorials<br /> </font> </div> <div id="yui_3_16_0_1_1431638336401_2880" class="y_msg_container"><br /><div id="yiv3757898249">
<div id="yui_3_16_0_1_1431638336401_2881">I have a file,<br /><br />/path/to/file_config<br /><br />which is X lines long and one of the lines, location unknown, says,<br /><br />Setting=No<br /><br />What I want to do is write a simple bash script that will open that file, locate that line, change it to a comment, and then insert another line below it, with the end result looking like this:<br /><br /># Setting=No<br />Setting=Yes<br /><br />Imagine I am your willing but unlettered intern. You're willing to teach me but would prefer, obviously, that I teach myself. Always better that way.<br /><br />Is there a tutorial that you would recommend?<br /><br /><br /><br /><br /><div> </div>
</div>
</div><br />_______________________________________________<br />colug-432 mailing list<br /><a ymailto="mailto:colug-432@colug.net" href="mailto:colug-432@colug.net">colug-432@colug.net</a><br /><a href="http://lists.colug.net/mailman/listinfo/colug-432" target="_blank">http://lists.colug.net/mailman/listinfo/colug-432</a><br /><br /><br /></div> </div> </div> </div><p style="margin-top: 2.5em; margin-bottom: 1em; border-bottom: 1px solid #000"></p><pre class="k9mail"><hr /><br />colug-432 mailing list<br />colug-432@colug.net<br /><a href="http://lists.colug.net/mailman/listinfo/colug-432">http://lists.colug.net/mailman/listinfo/colug-432</a><br /></pre></blockquote></div></body></html>