Shell command: SEQ

Source: Internet
Author: User

About SEQ

The SEQ command is used to generate all integers from one number to another

seq 1 5          Output 1-512345
seq 5-1 1       Reverse Output 1-554321
[[email protected] ~]# seq 1 2      //output 1-10 and output once every two digits 13579
seq 9-2 1       Reverse output 1-10 and output once every two digits 97531
seq-w 1      The-w parameter can be equal to the width output, where the maximum is 10 so the output two bits, if it is 100 output 001,002,003, ...    0304050607080910

Shell command: SEQ

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.