Mailinglist Archive: opensuse (686 mails)

< Previous Next >
Re: [opensuse] shell script help
Felix Miata said the following on 07/08/2013 08:14 AM:
I don't
understand why -d: -f2 works. The -d: part I sort of get, but not why 2 and
not 1 after -f.

Because you want the second field.

it goes <field> <delimiter> <field> [ <delimiter> <field> .... }

so you have

hostname : 0.0
field delimiter field

field #1 is the hostname
field #2 is the screen number

The real question is "Why is this not zero indexed?"

Most good crime on this planet involves insiders. -- Bruce Schneier
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups