Use jot to Print Sequences
Today I Learned about jot
, a command line utility that prints sequential or random data. Let's focus on the sequential bit.
jot
takes arguments for reps
, begin
and end
. So if we wanted to print the integers from 1 to 10, we'd do:
Which is neat, but only so cool. What if we wanted to print 21 evenly spaced numbers between -1 and 1? That would be cooler:
You can even print all the ASCII characters with:
Tweet