Shell: ‘seq’ generates a range of numbers

I don’t use this often, but I keep forgetting it – probably because I don’t use it often.

$ seq 146 151
146
147
148
149
150
151

Advertisements

One response to “Shell: ‘seq’ generates a range of numbers

  1. There are 2 others commands buried deep down in the old OCLUG WIKI
    under “stuff you should know about”

    * nl – numbers lines of a file
    * {a,b} – shell expansions so you can do things like “cp myfile{,-BAK}”

    there are more tips buried under The OCLUG and Linux FAQ (Frequently Asked Questions)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s