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 

ideone link

to display numbers in 1 line can use -s(separator) option of seq as:

seq -s' ' 1 0.25 5 

ideone link


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -