[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

RE: IF statements on the command line in bash



On Mon, 1 Oct 2001, James Francis wrote:

> Try this for the 1st one...
> for i in 21 22 23 24 25 26 27 28 29 30 ; do echo "Sep $i" ; done

also, in linux, there is the "seq" command just for generating
sequences like this:

for i in $(seq 21 30) ; do ...

rday

-- 
Robert P. J. Day
Eno River Technologies, Durham NC
Unix, Linux and Open Source training


Microsoft:  Committed to putting the "backward" into "backward compatibility."





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]