loops - cshell: How do I produce a list of decimal numbers? -
i want produce list of numbers 1 5 incrementing 0.25 @ each step, this:
1.0, 1.25, 1.5, ..., 4.5, 4.75, 5.0
is possible in csh? if so, how do it?
thanks help.
you can use seq
command as:
seq 1 0.25 5
to display numbers in 1 line can use -s
(separator) option of seq
as:
seq -s' ' 1 0.25 5
Comments
Post a Comment