|
Posted by JDS on 06/20/05 17:00
On Sat, 18 Jun 2005 20:05:48 +0100, David Dorward wrote:
> perl doesn't even see * - it is expanded by the shell before it gets to
> perl. Using my original code:
>
> perl -i.bak -p -n -e 's/\n/<br>\n/' *
Using the "-n" and "-p" flags is redundant. Use either -p or -n. In this
case, use -p, and NOT -n. (In fact, the "-p" flag overrides the "-n"
flag, and thus makes the two flags mutually exclusive)
See
perldoc perlrun
for more information
--
JDS | jeffrey@example.invalid
| http://www.newtnotes.com
DJMBS | http://newtnotes.com/doctor-jeff-master-brainsurgeon/
Navigation:
[Reply to this message]
|