LinuxGem
此处为老的 LinuxGem,新版 LinuxGem 请移步 www.linuxgem.org

seq 命令与漫画下载脚本

galeki posted @ 2007年12月02日 18:18 in Bash 和它的朋友们 with tags seq 漫画 , 4529 阅读

翻译 & 修改自: http://linux.byexamples.com/archives/347/write-a-online-manga-downloader-using-bash/

seq 命令的功能很简单,你可以尝试输入 seq 1 10,看看会发生什么:

 

# seq 1 10
1
2
3
4
5
6
7
8
9
10

呵呵,就是从 1 打印到 10,你还可以指定数字间的间隔:

 

 

# seq 0 10 100
0
10
20
30
40
50
60
70
80
90
100

0 10 100,就是代表间隔为 10,从 0 打印到 100,很简单对吧~

 

你还可以用 -w 参数,让打印的数字宽度相同,缺少的部分用 0 补齐:

 

# seq -w 0 10 100
000
010
020
030
040
050
060
070
080
090
100

聪明的同学肯定已经指定这和漫画下载脚本有什么关系了吧~

 

一般的漫画地址,举例来说,一页一页的就像这样:

http://c1.kukudm.com/comic/kuku2comic/OnePiece/Vol_01/OnePiece_01_001.jpg
..........
http://c1.kukudm.com/comic/kuku2comic/OnePiece/Vol_01/OnePiece_01_104.jpg

变化的只有最后的几个数字编号而已,有了 seq 命令的帮助,编写个脚本自动下载他们就是很容易的事情了~

#!/bin/bash

for  i in `seq -w 1 104` do    

wget -c "http://c1.kukudm.com/comic/kuku2comic/OnePiece/Vol_01/OnePiece_01_$i.jpg"

done

这样就可以搞定一些简单的漫画网站了~
另外 seq 也可以指定详细的序列格式,和数字间的分隔符,详细的用法可取去看看 seq --help ~ 
  • 无匹配
tamsun 说:
2007年12月02日 22:51 不错,又学一招
LINUXPCMAN 说:
2007年12月02日 23:04 这里更新太慢了
forex market 说:
2023年8月16日 19:41

After study a handful of the blog posts in your web site now, and I genuinely such as your technique of blogging. I bookmarked it to my bookmark web site list and will be checking back soon. Pls check out my web-site in addition and make me aware what you believe. customzied curtains

kashif 说:
2023年8月16日 20:30

Very informative blog. I especially enjoy content that has to do with beauty and fitness, so it’s refreshing to me to see what you have here. Keep it up! facial exercises openai

kashif 说:
2023年8月19日 20:43

Some times its a pain in the ass to read what website owners wrote but this website is very user pleasant! . เว็บไซต์แทงบอล

kashif 说:
2023年8月19日 23:23

Hang in there for eventually you are going to arrive to realise that lifestyle is much more exciting than you actually thought doable and even feel! แทงบอลออนไลน์UFABET

kashif 说:
2023年8月20日 17:12

I think other website owners should take this internet site as an model, very clean and wonderful user friendly design . ทางเข้าUFABETดียังไง

kashif 说:
2023年8月21日 14:35

I really appreciate this post. I have been looking all over for this! Thank goodness I found it on Bing. You have made my day! Thanks again FLORIDA FAKE ID

kashif 说:
2023年8月22日 18:14

Many people target you should distinct foot work a long time before writing. Are going to be probable for you to additional desired short article in doing this. buy scrap online

kashif 说:
2023年8月23日 18:15

I really appreciate this post. I have been looking all over for this! Thank goodness I found it on Bing. You have made my day! Thanks again เว็บบอลออนไลน์เว็บไหนดี

kashif 说:
2023年8月23日 21:43

whoah this blog is excellent i love reading your posts. Stay up the good work! You realize, lots of people are looking around for this info, you can help them greatly. พนันออนไลน์ครบวงจร

kashif 说:
2023年8月24日 15:09

Great ?V I should certainly pronounce, impressed with your site. I had no trouble navigating through all the tabs as well as related info ended up being truly easy to do to access. I recently found what I hoped for before you know it at all. Quite unusual. Is likely to appreciate it for those who add forums or anything, website theme . a tones way for your client to communicate. Nice task.. انترنت مجاني

kashif 说:
2023年8月24日 20:42

An interesting discussion may be worth comment. I do think that you simply write on this topic, it will not certainly be a taboo subject but normally consumers are insufficient to communicate on such topics. To a higher. Cheers Miabet88

kashif 说:
2023年8月25日 18:33

I have been checking your blog site for any even though now, would seem like everyday I study some thing new Thanks Nighty

kashif 说:
2023年8月26日 22:50

Presently the grade of our very own bordering is now a vital condition. The complete community human population shall be rising hence swiftly the planet is now also congested. Grand Cabin for rent in Islamabad

AVALIADOR PREMIADOR 说:
2023年8月28日 15:57

I like your release. It can be wonderful to discover somebody make clear throughout words and phrases inside centre and also clearness about it vital theme may be simply discovered. login slot138

AVALIADOR PREMIADOR 说:
2023年8月28日 18:51

Quickly your website can unquestionably acquire well known being among the most regarding submitting buyers, for the meticulous content articles or simply just essential critiques. mawartoto login

AVALIADOR PREMIADOR 说:
2023年8月28日 23:10

To think about received on the web log even so placing cure admittedly simply a minor small submits. Gratifying way of probable potential, Were book-marking at a time risk-free versions end soars jointly. login panen138

AVALIADOR PREMIADOR 说:
2023年8月29日 21:57

This would be the proper weblog for wants to find out about this topic. You realize a great deal its nearly hard to argue on hand (not too When i would want…HaHa). You actually put a brand new spin with a topic thats been discussing for a long time. Wonderful stuff, just fantastic! outdoor modular couch

AVALIADOR PREMIADOR 说:
2023年8月30日 15:51

Splendid post. We learn brand new stuff upon various blogs daily. Couple of revitalizing to determine content material using their company writers as well as grow to be familiar having a little some thing their own certain. I’d believe to make use of a few inside the information on my blog need to don’t mind. Normally I’ll provides a link back up in internet internet site. Thanks sharing. best wireless speakers

haider 说:
2023年8月30日 19:14

Design Strategies for Tiny Females Covers together with nice knitted feel, laces, tiny flower prints as well as plaids ought to be provided choice. 메이저사이트

AVALIADOR PREMIADOR 说:
2023年8月31日 19:54

You could definitely see your enthusiasm within the work you write. The sector hopes for more passionate writers such as you who aren’t afraid to mention how they believe. All the time go after your heart. เกมแบบไหนหาได้จากเว็บพนันออนไลน์ไม่ผ่านเอเย่นต์

AVALIADOR PREMIADOR 说:
2023年9月01日 00:03

Sea include onto your website page while utilizing see solely solely a little portion submits. Enjoyable strategy for near future, My business is bookmarking presently find models conduct happens absent. buy gbl online

AVALIADOR PREMIADOR 说:
2023年9月04日 14:18

I spend time many of the subject material, I have to express i actually prized, I actually wants more information about the following, just because this can be very superb., Thanks a ton pertaining to discovering. how much does miss rachel make

haider 说:
2023年9月04日 15:04

My brother suggested I could possibly like this web site. He was entirely correct. This post genuinely produced my day. You can not envision just how much time I had spent for this information and facts! Thanks! 안전놀이터

AVALIADOR PREMIADOR 说:
2023年9月06日 20:42

I love to most of the information, I must claim when i liked, When i would love additional information related to that, because it's very good., Appreciate it about unveiling. 토토사이트 추천

AVALIADOR PREMIADOR 说:
2023年9月07日 16:10

Saya suka cara Anda mengendalikan pancing dengan presisi menggunakan power handle. Itu pasti membuat pengalaman memancing lebih menyenangkan. REKOMENDASI REEL PANCING POWER HANDLE

AVALIADOR PREMIADOR 说:
2023年9月09日 19:55

I am glad you take pride in what you write. This makes you stand way out from many other writers that push poorly written content. 토토사이트

haider 说:
2023年9月14日 22:31

An fascinating discussion will probably be worth comment. I believe that you ought to write more on this topic, may possibly not be described as a taboo subject but usually everyone is too little to communicate on such topics. To another location. Cheers สล็อต

haider 说:
2023年9月20日 16:32

There are a couple of intriguing points at some point on this page but I do not determine if they all center to heart. There’s some validity but I will take hold opinion until I check into it further. Great post , thanks and then we want a lot more! Added onto FeedBurner too funny crocs clogs

james 说:
2023年10月06日 20:11

I imagine this has gotta be some type of evolutionary characteristic to determine what type of person someone is. Whether they are out to get vengence, if they are mean, someone that you need to be cautious about. People would need to understand how to work with to them. clogs with chicken print

jam 说:
2023年11月02日 18:59

It’s perfect time to make some plans for the future and it is time to be happy. I have read this post and if I could I want to suggest you some interesting things or suggestions. Maybe you could write next articles referring to this article. I want to read more things about it! Packers and Movers Hyderabad to Bhubaneswar

壯陽藥 说:
2023年11月06日 19:47

Its like you read my mind! You seem to know a lot about this, like you wrote the book in it or something. I think that you could do with some pics to drive the message home a little bit, but other than that, this is fantastic blog. An excellent read. I will definitely be back. 壯陽藥

壯陽藥 说:
2023年11月08日 19:23

Fast this specific wonderful internet site will unquestionably irrefutably be distinguished in the middle of nearly all producing a new web site males and females, since careful written content and also testimonails from others. Nhà cái Fi88

jam 说:
2023年11月10日 23:02

Rapidly this kind of internet site can easily definitely recognition among virtually all blogging and site-building and also site-building individuals, because careful content or simply opinions. https://www.newapproach.org/play8oy2/

jam 说:
2023年11月11日 23:43

I love the numerous blogposts, We critically loved, I'd like information about this, because it is quite fantastic., Regards regarding indicating. go88

jam 说:
2023年11月13日 19:52

kantorbola99 , menyediakan beragam jenis permainan game slot online terbaru dengan RTP diatas 97 % . Sebagai link kantor bola resmi kami menyediakan beragam promo menarik mulai dari bonus harian , bonus mingguan serta bonus cashback . link kantor bola

jam 说:
2023年11月13日 22:59

As i acquired onto your internet site even so placing emphasis strictly slightly tiny submits. Gratifying strategy for foreseeable future, I am bookmarking each and every time acquire folks end develops set up. Buy weed wholesale in Australia

jam 说:
2023年11月14日 15:38

The style absolutely superb. These types of tiny facts usually are fashioned using lots of story practical knowledge. I'd prefer everthing appreciably. nạp tiền f8bet

jam 说:
2023年11月15日 19:55

This really is both equally a very good information when i rather definitely preferred verifying. This may not be at all times i always get likely to see a challenge. nhà cái khuyến mãi thành viên mới 88k

jam 说:
2023年11月17日 14:59

This can be also a fairly beneficial writing that any of us absolutely beloved considering. Possibly not on a daily basis which often experience the likelihood to get a solution. trang chủ 79king

jam 说:
2023年11月20日 15:01

Get daily teer result, shillong teer result, khanapara teer result, teer result common number daily success live teer result here. shillong teer result

jam 说:
2023年11月21日 19:05

Youre so cool! I dont suppose Ive read anything like this before. So nice to seek out somebody by original applying for grants this subject. realy thanks for starting this up. this amazing site are some things that is required over the internet, an individual after a little originality. valuable job for bringing something new towards net! tylebongda

jam 说:
2023年11月22日 16:48

Can I say such a relief to find somebody who really knows what theyre discussing on the internet. You certainly realize how to bring a worry to light and earn it critical. The diet must check out this and understand this side of the story. I cant believe youre no more common when you definitely develop the gift. bắn cá f8bet

jam 说:
2023年11月23日 20:01

Quick the website will undoubtedly grow to be well known along with almost all working the weblog households, due to the painstaking content articles or evaluation content articles. livescore7m

jam 说:
2023年11月25日 15:39

Nicely I undoubtedly enjoyed reading through this. This particular tip provided by a person is actually very useful with regard to correct preparing. https://www.giantbomb.com/profile/mmedispa1/about-me/

jam 说:
2023年11月25日 20:33

I need saying thanks to you because of this great read!! I definitely enjoying every little it smile Concerning you bookmarked to see new items post. Golden Buffalo Double Up demo

jam 说:
2023年11月26日 19:49

Hi, Neat post. There is a problem with your web site in internet explorer, would check this… IE still is the market leader and a big portion of people will miss your magnificent writing because of this problem. UFABETสมัครแทงบอลฟรีไม่มีขั้นต่ำ

jam 说:
2023年11月28日 20:39

That'sthe justification selling you ought to correct home work in advance of composing. It is practical to jot down greater offer this particular. Alien Labs Disposable

jam 说:
2023年11月29日 17:11

But the unimaginative writers couldn’t be bothered to work out a plot consistent with the all the rest of the Star Trek collection. 온라인카지노사이트

jam 说:
2023年11月29日 20:27

These kinds of would seem absolutely ideal. Every one of these minor data are generally created in addition to a great deal of history data. I favor that will a tremendous amount. Dabwoods Carts

jam 说:
2023年11月30日 15:47

Hey there! I’m at work browsing your blog from my new iphone! Just wanted to say I love reading your blog and look forward to all your posts! Carry on the outstanding work! video bokep gratis

jam 说:
2023年11月30日 20:34

But the unimaginative writers couldn’t be bothered to work out a plot consistent with the all the rest of the Star Trek collection. where to buy pappy van winkle

jam 说:
2023年11月30日 22:55

This can be in addition a fantastic distribute that individuals really adored studying. It is not everyday that i contain the possibility to ascertain a thing. pappy van winkle 12 year

jam 说:
2023年12月01日 20:10
I enjoy every one of the post, My spouse and i liked, I might like additional data using this type of, since it can be pretty nice., Regards created for supplying. <a href="https://www.littlepeng.com/single-post/little-p-eng-engineering-for-piping-stress-analysis-using-autopipe-across-canada-and-usa">Piping Engineering Company</a>
 
jam 说:
2023年12月02日 16:09

People like numerous considerations, I actually essentially expert, I would personally have a preference for more information regarding the following, on the grounds that its magnificent., By using as a consequence of have dispersion. lunchtime result

jam 说:
2023年12月02日 20:35

We prefer your present post. It may be excellent to see anybody clarify within phrases with the cardio together with lucidity with this crucial concern may be rapidly observed. daftar situs bokep

jam 说:
2023年12月02日 22:18

The item senses solely ideal. Each of small facets were being designed as a result of quite a few history knowledge. I really like the appliance loads. video abg

jam 说:
2023年12月04日 14:57

I and also my pals have been examining the top guides from the website and immediately I had a horrible feeling I never expressed respect towards the weblog owner for those strategies. All of the ladies were totally thrilled to study through them and have in effect really been taking advantage of these things. Quite a few thanks for being incredibly thoughtful and for settling on some remarkable subjects millions of individuals are seriously wanting to understand about. My honest apologies for not saying thanks to earlier. link bong88

jam 说:
2023年12月05日 16:05

The subsequent seems including it goes without saying excellent. Almost all these trivial details are meant by employing volume of footing understanding. I love to these individuals drastically. 8xbet \

jam 说:
2023年12月06日 15:55

Good site! I really love how it is simple on my eyes and the data are well written. I am wondering how I might be notified whenever a new post has been made. I have subscribed to your RSS which must do the trick! Have a great day! 78win

jam 说:
2023年12月08日 18:23

The things i have always told folks is that while looking for a good internet electronics store, there are a few issues that you have to take into consideration. First and foremost, you should really make sure to find a reputable along with reliable shop that has enjoyed great reviews and ratings from other shoppers and marketplace advisors. This will ensure you are dealing with a well-known store that gives good support and aid to their patrons. Many thanks for sharing your notions on this blog. Hybrid Vape Carts

jam 说:
2023年12月08日 22:49

This is a lot of information to take in, but I am enjoying the thought process. I really am impressed with your article. Thank you. ga179

jam 说:
2023年12月09日 00:11

Ocean currently have on your webpage even if putting on recognize exclusively exclusively a small amount of element submits. Stress-free technique for not too distant future, We're book-marking at this point buy kinds undertake can come at a distance. News \

jam 说:
2023年12月09日 14:12

It truly is while doing so a reliable area i always particularly savored checking. Is just not every day that include the prospect to look at a service. jun88

jam 说:
2023年12月14日 16:15

This sort of appears completely greatest. Each one of these small info tend to be produced as well as plenty of background info. I favor which a great deal. 123b

jam 说:
2023年12月16日 14:21

That is furthermore a great submit that people genuinely cherished examining. It isn't every day that we hold the probability to find out one thing. Xo88

jam 说:
2023年12月21日 14:45

I’ll immediately clutch your rss feed as I can not find your email subscription hyperlink or e-newsletter service. Do you have any? Kindly allow me realize in order that I may subscribe. Thanks. plug and play pods

jam 说:
2023年12月22日 16:14

This is the most creative release from Guru Gang Starr and Solar. This classic Hip Hop album Guru and Solar

jam 说:
2024年1月02日 23:53

The when I just read a blog, I hope so it doesnt disappoint me as much as that one. I am talking about, It was my method to read, but I actually thought youd have something fascinating to express. All I hear is often a bunch of whining about something that you could fix in the event you werent too busy looking for attention. bong da lu

jam 说:
2024年1月04日 18:31

Saya dan teman-teman saya sedang meninjau taktik bagus yang ditemukan di situs web Anda, lalu tiba-tiba timbul perasaan tidak enak karena saya tidak berterima kasih atas teknik tersebut. Oleh karena itu, anak-anak muda ini sudah bursa4d

jam 说:
2024年1月05日 20:18

Inilah sebabnya mengapa mendorong Anda untuk mencari yang tepat sebelum berkreasi. Tidak akan sulit untuk menuliskan artikel luar biasa dengan melakukan hal ini. Bali777

jam 说:
2024年1月08日 21:00

I prefer the complete pair of things, Seriously considered actually appreciated, I would like more details. with this, contemplating it is relatively respectable., Thank you a whole lot when it comes to exhibiting. Start Make money today $$$$


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter