sed bug/discrepancy
Edward Reingold <[email protected]> Fri, 1 May 2015 13:52:24 -0500
| Newsgroups | gmane.comp.gnu.utils.bugs |
|---|---|
| Message-ID | <CAO_04X7D84GMCDQ6f+H3DKvtet0m5ha5+hiys0zKvu7CDW4yFw@mail.gmail.com> |
The following sed command works perfectly in Solaris, but causes duplicated
lines when using the GNU version:
sed -n -e 's/^\\inputfun[{]\([?a-zA-Z0-9-]*\)[}].*$/\1/p' book.tex >! c
(it produces a list of all function input lines in a LaTeX file).