Snarf is a useful little tool available from http://www.xach.com/snarf/. To quote the docs:

--<cut>--

What is snarf?
snarf is a command line resource grabber. It can transfer files through the http, gopher, finger, and ftp protocols without user interaction. It is small and fast.

How do I use snarf?
If you have an URL (for example, http://foo.bar.com/picture.jpg), you type the following (the $ below represents the command prompt):

$ snarf http://foo.bar.com/picture.jpg

snarf will fetch the file and save it to your local system with the name picture.jpg. If you want to save the file under a different name (for example, background.jpg), you type the following:

$ snarf http://foo.bar.com/picture.jpg background.jpg

snarf saves the file with the name background.jpg. If you want snarf to send the file to standard output, you would type the following:

$ snarf http://foo.bar.com/picture.jpg -

When snarf sees a dash as the local file name, it sends everything it fetches to standard output. --<cut>--

Billy Joe Bob Briggs says, "Check it out!"

-- JcLawrence - 07 Sep 2000

-- MattWalsh - 31 Jan 2002

Topic revision: r1 - 01 Feb 2002 - MattWalsh
 
This site is powered by the TWiki collaboration platformCopyright © 2008-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback