[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
RE: IF statements on the command line in bash
- From: rpjday <rpjday mindspring com>
- To: "'redhat-list redhat com'" <redhat-list redhat com>
- Subject: RE: IF statements on the command line in bash
- Date: Mon, 1 Oct 2001 12:08:13 -0400 (EDT)
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]