in reply to Re: modifying multiple files
in thread modifying multiple files

That's helpful, thanks -
I have a lot of files, though; is there a way to automatically do it to all .bar files?

Replies are listed 'Best First'.
Re3: modifying multiple files
by Hofmator (Curate) on Aug 03, 2001 at 20:23 UTC

    yes, just use the filename expansion of your shell, i.e. perl -i.bk do_it *.bar and all files in the current directory ending in .bar are processed by the script in place (the backups have the additional ending .bk)

    -- Hofmator