Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: tru64man@my-deja.com
Subject: korn shell
Date: 2000/11/14	[thread overview]
Message-ID: <8urkfl$2i3$1@nnrp1.deja.com> (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.



             reply	other threads:[~2000-11-14  5:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-11-14  5:00 tru64man [this message]
2000-11-14  5:00 ` korn shell Robert Mulley
2000-11-14  5:00   ` Lee A. Newcomb
read-only archive

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