Skip to Content
Linux Shell Scripting Cookbook - Third Edition
book

Linux Shell Scripting Cookbook - Third Edition

by Clif Flynt, Sarath Lakshman, Shantanu Tushar
May 2017
Beginner
552 pages
28h 47m
English
Packt Publishing
Content preview from Linux Shell Scripting Cookbook - Third Edition

How it works...

By default, the downloaded files are named the same as the URL, and the download information and progress is written to stdout.

The -O option specifies the output filename. If a file with that name already exists, it will be replaced by the downloaded file:

$ wget http://www.knopper.net -O knopper.html.

The -o option specifies a logfile instead of printing logs to stdout:

$ wget ftp://ftp.example.com/somefile.img -O dloaded_file.img -o log

Using the preceding command will print nothing on the screen. The log or progress will be written to the log and the output file will be dloaded_file.img.

There is a chance that downloads might break due to unstable Internet connections. The -t option specifies how many times the utility ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering Linux Shell Scripting - Second Edition

Mastering Linux Shell Scripting - Second Edition

Mokhtar Ebrahim, Andrew Mallett

Publisher Resources

ISBN: 9781785881985