OT: sed + exit status
Robert Huff
roberthuff at rcn.com
Sat Feb 14 05:53:44 PST 2009
According to the man page:
EXIT STATUS
The sed utility exits 0 on success, and >0 if an error occurs.
However, what constitutes "success" is undefined.
Consider the sed command
s/FOO/bar/
. 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
More information about the freebsd-questions
mailing list