Subject: Re: pkgsrc and jot(1)
To: <>
From: David Laight <david@l8s.co.uk>
List: tech-pkg
Date: 04/05/2002 22:54:38
On Fri, Apr 05, 2002 at 12:26:48PM -0800, John Refling wrote:
> to avoid listing all, can try:
>
> #!/bin/sh
> for i in `echo [0-9] [0-9][0-9] [0-9][0-9][0-9] | sort -n`; do
> echo $i
> done
>
> pretty sure the "| sort -n" is not needed, but check that
> result of "echo" is in numerical order.
for i in `echo [1-9] [1-9][0-9] [1-9][0-9][0-9] | sort -n`; do
might be nearer the mark...
OTOH the '| sort -n' could feasably be problematical under some
obscure system :-)
David
--
David Laight: david@l8s.co.uk