Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
* korn shell
@ 2000-11-14  5:00 tru64man
  2000-11-14  5:00 ` Robert Mulley
  0 siblings, 1 reply; 3+ messages in thread
From: tru64man @ 2000-11-14  5:00 UTC (permalink / raw)


I'm learning Korn here but I promise I will not flood this newsgroup
with trivial questions but I'm either lost or I'm an idiot. I'm reading
the book "Learning the Korn Shell" by Rosenblatt. On page 98 it
indicates a piece of code that I don't understand.

sort -nr $1 | head -${2:-10}

I know what sort and its options mean, the pipe sign, and the head
utility--no problem there. But I don't understand the last part
  -${2:-10}

Could someone explain that part to me in somewhat elementary details?
thanks in advance.

Untru64Man


Sent via Deja.com http://www.deja.com/
Before you buy.



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2000-11-14  5:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-11-14  5:00 korn shell tru64man
2000-11-14  5:00 ` Robert Mulley
2000-11-14  5:00   ` Lee A. Newcomb

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox