[PLUG] shell scripting question

Colin Kuskie ckuskie at dalsemi.com
Wed Oct 20 09:49:01 UTC 2004


On Wed, Oct 20, 2004 at 09:38:19AM -0700, Randal L. Schwartz wrote:
> >>>>> "Colin" == Colin Kuskie <ckuskie at dalsemi.com> writes:
> 
> Colin> while (<>) {
> Colin>   tr/ / /s;
> Colin>   @columns = split;
> Colin>   @columns = @columns(1,7,8); #Check for 0 based indexing versus 1 based
> 
> This is a syntax with which I'm not familiar.  Are you sure you didn't
> mean @columns[1,7,8]?

DWIM strikes again.

Yes, I do.

Thanks!

Colin




More information about the PLUG mailing list