SPUG: Re: Software to expand contractions?
Jeremy Mates
jmates at sial.org
Mon Oct 27 11:22:37 CST 2003
* Cantrall, Christopher W <christopher.w.cantrall at BOEING.COM>
> BTW, for some reason I can't seem to get this to work as a one-liner,
> but I think that's because my shell-fu is weak. If you're morbidly
> curious:
>
> cwc9144 at esg2776:<45> perl -wln -e'/\b(\w+\'\w+)\b/; print "$1" if $1;' file
> /usr/bin/ksh: 0403-057 Syntax error: `)' is not expected.
To quote ' inside '' in the shell requires the following:
echo 'cats'
echo 'cat'\''s'
More information about the spug-list
mailing list