On Sat, Jun 14, 2008 at 9:56 AM, Octavian Rasnita <[EMAIL PROTECTED]> wrote:

> Is there a one-liner command that can replace a certain text with another in
> more files specified with wildcards like *.html that works under Windows
> cmd?

Since you ask this you probably know the Windows shell does not expand
wildcards. There's a trick for Perl one-liners though (untested):

  perl -e "@ARGV = glob(qq($ARGV[0])); s/foo/bar/ while <>" *.html

You see the idea.

-- fxn

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to