[colug-432] sed basics

Zach Villers zachvatwork at gmail.com
Fri May 15 08:59:18 EDT 2015


I'm kind of a newb as well, but are you looking for;

Exit 1;

To stop the script?

I am working through the Learn to script tutorial at bash.cyberciti.biz/guide/Main_Page . You might find that helpful.

Sent from my iPhone

> On May 15, 2015, at 8:23 AM, Steve VanSlyck <s.vanslyck at postpro.net> wrote:
> 
> Good advice.
> 
> Problem is the eyes/stomach differential. I want to do a lot and all the
> lawyering during the day interferes.
> 
> Here's something I've googled without finding a simple answer.
> 
> #1/bin/bash
> command to be tested
> untested pwd command
> untested ls command
> untested unintentionally silently destroy my remote backups command
> untested unintentionally silently send colug all my money command
> untested unintentionally silently destroy my server command
> 
> Is there a command can enter between "command being tested" and
> "untested pwd command" to stop the script and return to the terminal to
> avoid running the rest of the script? "Exit," I understand, will close
> the terminal, which I don't want to do.
> 
> A blank space is between PermitRootLogin and the no or yes.
> 
> 
> 
>> On Thu, May 14, 2015, at 23:00, jep200404 at columbus.rr.com wrote:
>> First, try the boring way:
>> 
>>    sed 's...' sshd_config >sshd_config.new
>>    diff sshd_config sshd_config.new
> 
> _______________________________________________
> colug-432 mailing list
> colug-432 at colug.net
> http://lists.colug.net/mailman/listinfo/colug-432



More information about the colug-432 mailing list