Recent Changes - Search:

Oktatás

* Programozás 1
  + feladatsor
  + GitHub oldal

* Szkriptnyelvek
  + feladatsor
  + quick link

Teaching

* Programming 1 (BI)
  ◇ exercises
  ◇ quick link

teaching assets


Félévek

* 2025/26/2
* archívum


Linkek

* kalendárium
   - munkaszüneti napok '20
* tételsorok
* jegyzetek
* szakdolgozat / PhD
* ösztöndíjak
* certificates
* C lang.
* C++
* C#
* Clojure
* D lang.
* Java
* Nim
* Nim2
  + exercises
* Scala


[ edit | logout ]
[ sandbox | passwd ]

20260411a

mass download

We want to perform a mass download. We want to download the following files:

http://example.com/galleryFX/1.jpg
http://example.com/galleryFX/2.jpg
http://example.com/galleryFX/3.jpg
http://example.com/galleryFX/4.jpg
http://example.com/galleryFX/5.jpg
http://example.com/galleryFX/6.jpg
http://example.com/galleryFX/7.jpg
http://example.com/galleryFX/8.jpg
http://example.com/galleryFX/9.jpg
http://example.com/galleryFX/10.jpg
http://example.com/galleryFX/11.jpg
http://example.com/galleryFX/12.jpg
http://example.com/galleryFX/13.jpg
http://example.com/galleryFX/14.jpg
http://example.com/galleryFX/15.jpg

Write a program that produces this output.

Tip

If we actually want to download these files, proceed as follows:

$ ./url_generator >down.txt
$ wget -i down.txt

Extra challenge

The numbers in the filenames are fixed at 2 digits wide:

http://example.com/galleryFX/01.jpg
http://example.com/galleryFX/02.jpg
http://example.com/galleryFX/03.jpg
http://example.com/galleryFX/04.jpg
http://example.com/galleryFX/05.jpg
http://example.com/galleryFX/06.jpg
http://example.com/galleryFX/07.jpg
http://example.com/galleryFX/08.jpg
http://example.com/galleryFX/09.jpg
http://example.com/galleryFX/10.jpg
http://example.com/galleryFX/11.jpg
http://example.com/galleryFX/12.jpg
http://example.com/galleryFX/13.jpg
http://example.com/galleryFX/14.jpg
http://example.com/galleryFX/15.jpg

Modify your program accordingly!

Cloud City

  

Blogjaim, hobbi projektjeim

* The Ubuntu Incident
* Python Adventures
* @GitHub
* heroku
* extra
* haladó Python
* YouTube listák


Debrecen | la France


[ edit ]

Edit - History - Print *** Report - Recent Changes - Search
Page last modified on 2026 April 11, 09:30