[colug-432] Tutorials
Rick Hornsby
richardjhornsby at gmail.com
Thu May 14 14:50:01 EDT 2015
> On May 14, 2015, at 13:45, Steve VanSlyck <s.vanslyck at postpro.net> wrote:
>
> I have a file,
>
> /path/to/file_config
>
> which is X lines long and one of the lines, location unknown, says,
>
> Setting=No
>
> 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:
>
> # Setting=No
> Setting=Yes
>
> 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.
>
> Is there a tutorial that you would recommend?
sed is your friend.
More information about the colug-432
mailing list