You are here: Re: Linux insert <br> utility? « HTML « IT news, forums, messages
Re: Linux insert <br> utility?

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация