swiftone has asked for the wisdom of the Perl Monks concerning the following question:
Now rather than breaking File::Find out, I figured this was an easy one-liner. I don't do many one-liners, but I opened up perlrun, read (I thought) the relevant sections, and ran this from the root of a copy of the directory tree: perl -i -e'print "prepend\n"; print join "", <>; print "append\n";' *.html */*.html */*/*.html */*/*/*.html This prints everything to the screen, and turns everything into 0 byte files.
Any ideas what I'm missing?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: In-place header/footer
by perrin (Chancellor) on Apr 01, 2002 at 16:43 UTC | |
by swiftone (Curate) on Apr 01, 2002 at 16:57 UTC | |
|
Re: In-place header/footer
by RMGir (Prior) on Apr 01, 2002 at 16:21 UTC | |
|
Re: In-place header/footer
by Fletch (Bishop) on Apr 01, 2002 at 19:01 UTC |