http://www.perlmonks.org?node_id=421590


in reply to Re: One Liners
in thread One Liners

perl -p "s/\bperl\b/Perl/g;" textfile.txt

You're missing an -e in there (and in the following example.)

Makeshifts last the longest.

Replies are listed 'Best First'.
Re^3: One Liners
by davido (Cardinal) on Jan 12, 2005 at 17:40 UTC

    Thanks... Fixed.


    Dave