Ian Wilson <> wrote:
> And 'print while <>' is the -p option ...
>
> $ echo xxx > bulk.txt
> $ echo aaa > 1.txt
> $ echo bbb > 2.txt
> $ echo ccc > 3.txt
> $ perl -pe "" ?.txt >> bulk.txt
> $ cat bulk.txt
> xxx
> aaa
> bbb
> ccc
>
> I suppose this *might* be useful on a platform that has perl but
> lacks cat or a decent shell?
Sure, but even in later versions of DOS (at least v3+, IIRC) you
could use
C:\> for %f in (?.txt) do type %f >> bulk.txt
and under win2k at least, 'type ?.txt > bulk.txt' seems to work as
you might expect. The DOS shell is not completely brain-dead, just
mentally retarded.
Not that this has anything remotely to do with Perl...