Discussion:
sed bug/discrepancy
(too old to reply)
Edward Reingold
2015-05-01 18:52:24 UTC
Permalink
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).
Edward Reingold
2015-05-01 18:57:44 UTC
Permalink
Never mind... the problem is my input differs in the two systems. Sorry.
Post by Edward Reingold
The following sed command works perfectly in Solaris, but causes
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).
Loading...