cyberz.org

February 27, 2008

seq equivalent

Filed under: Unix — Tags: , — andrea @ 8:19 pm

On platforms without seq (MacOSX, Solaris), you can emulate it using dc as follows (note the upper bound and the lower bound):

echo '[1+pdupper bound>aq]salower bound 1-lax' | dc

For example:

alia:~ andrea$ echo '[1+pd5>aq]sa0 1-lax' | dc
0
1
2
3
4
5
alia:~ andrea$

Last of the Mohicans

Filed under: News — Tags: — andrea @ 1:18 am

After years of heroic resistance my site finally became a blog.

Ford T

Powered by WordPress