in reply to Re: Re: Re: 2048 character limit
in thread 2048 character limit

Yes it does; maybe your problem is that I'm using the diamond operator. Either make that <FH> or drop the file opening code at the top. In the latter case, call it with the filename on the commandline (script /etc/passwd) or pipe the data into it (script < /etc/passwd).

Rationale: I tend to use the diamond operator rather than handle the file opening myself because it makes scripts more flexible as to where they accept input from, while at the same time they take less time to write - no monkeying with open, much less (if any) manual error checking, etc. Perl does the job for me, why should I?

Makeshifts last the longest.