In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to use the Linux seq command to generate a digital sequence". The content of the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn how to use the Linux seq command to generate a digital sequence.
Linux's seq command can generate a list of numbers at lightning speed, and it is easy to use and flexible.
One of the easiest ways to generate a list of numbers in Linux is to use the seq (Series sequence) command. In its simplest form, seq takes a numeric parameter and outputs a list from 1 to that number. For example:
$seq 512345
Seq always starts with 1 unless otherwise specified. You can insert different numbers in front of the final number to start a sequence.
$seq 3 5345 specify increment
You can also specify incremental strides. Suppose you want to list multiples of 3. Specify the start point (the first 3 in this example), the increment (the second 3), and the end point (18).
$seq 3 3 18369121518
You can choose to use negative increments (that is, decrements) to change the number from large to small.
$seq 18-3 3181512963
The seq command is also very fast. You may be able to generate a list of a million numbers in 10 seconds.
$time seq 1000000123. 9999989999991000000 real 0m9.290s
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.