
wget | 503
Linux
Commands
This is the Title of the Book, eMatter Edition
Copyright © 2006 O’Reilly & Associates, Inc. All rights reserved.
Options
-c, --bytes
Print byte count only.
-l, --lines
Print line count only.
-L, --max-line-length
Print length of longest line.
-m, --chars
Print character count only.
-w, --words
Print word count only.
--help
Print help message and then exit.
--version
Print the version number and then exit.
Examples
Count the number of users logged in:
who | wc -l
Count the words in three essay files:
wc -w essay.[123]
Count lines in the file named by variable $file (don’t display
filename):
wc -l < $file
wget
wget [options] [urls]
Perform non-interactive file downloads from the Web. wget works
in the background and can be used to set up and run a download
without the user having to remain logged on. wget supports
HTTP, HTTPS, FTP, as well as downloads through HTTP
proxies. wget uses a global startup file that you may find at /etc/
wgetrc or /usr/local/etc/wgetrc. In addition, users can define their
own $HOME/.wgetrc files.
Options
-a logfile, --append-output=logfile
Append output messages to logfile, instead of overwriting the
contents. If logfile doesn’t exist, create it.
-A acclist, --accept=acclist
Specify a comma-separated list of filename suffixes or patterns
to accept.
-b, --background
Go into the background immediately after startup, writing
output to the file specified with -o or to wget-log ...