Seq commands in Linux

Source: Internet
Author: User
The seq command in Linux-general Linux technology-Linux programming and kernel information. The following is a detailed description. Original Author xiaochanghai

Seq commands are the next relatively biased commands in linux. Generally, they are not mentioned in the teaching books of linux. I also learned this when I went to the forum today and found it interesting, the main usage of baidu is:

Seq-F' % G' | xargs command

-F indicates the formatting operation, which is equivalent to the pringf function. The default value is % g.

For example, to print 01 02 03 04 05, run the following command:

Seq-F' % 02g' 1 5 | xargs echo

To create dir01, dir02,..., dir10, run the following command:

Seq-f 'dir % 02 '1 10 | xargs mkdir

To enable mplayer to play a song five times, run the following command:

Seq 5 | xargs mplayer songname

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: info-contact@alibabacloud.com 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.