Date: Sun, 15 Feb 2009 08:57:58 -0500 From: Mike Jeays <mike.jeays@rogers.com> To: freebsd-questions@freebsd.org Subject: Re: OT: sed + exit status Message-ID: <200902150857.58603.mike.jeays@rogers.com> In-Reply-To: <59adc1a0902142226ueb6e878h51076eec2cc58609@mail.gmail.com> References: <18838.52454.185642.297737@jerusalem.litteratus.org> <59adc1a0902142226ueb6e878h51076eec2cc58609@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On February 15, 2009 01:26:27 am Dimitar Vasilev wrote: > > . Is sed "successful" is there are no instances of FOO? Or > > only if there is at least one instance of FOO and it is successfully > > replaced by bar? > > > > Respectfully, > > > > > > Robert Huff > > > > _______________________________________________ > > freebsd-questions@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > > To unsubscribe, send any mail to " > > freebsd-questions-unsubscribe@freebsd.org" > > Hi Robert, > try to use truss or strace to see the exit codes in both cases. > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" Both cases return an exit code of '0'. You can check more easily by putting the command 'echo $?' directly after the sed command.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200902150857.58603.mike.jeays>