Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.linux.misc > #4136
| From | Michael Black <et472@ncf.ca> |
|---|---|
| Newsgroups | comp.os.linux.misc |
| Subject | Re: How can I get a plain text directory with wget? |
| Date | 2012-02-05 22:27 -0500 |
| Organization | National Capital Freenet, Ottawa, Ontario, Canada |
| Message-ID | <Pine.LNX.4.64.1202052217140.15588@darkstar.example.net> (permalink) |
| References | <jgngpj$ie5$1@dont-email.me> |
On Sun, 5 Feb 2012, Todd wrote: > Hi All, > > Not having much luck with the man page. > > I use the following piece of code in a bash script to > give me a directory listing: > > wget --quiet http://$FtpSite$FtpDir -O - > $Tmp 2>&1 > > The value pumped into $Tmp in a bunch of HTML code. > It is annoying to have to sift through it. > Is it because you are actually getting an html page? Wouldn't the URL start with ftp: to get an ftp directory? wget is great for automated work, but it's not clear where in this you feel it needs to be automated, not when there are other tools that may be simpler if all you need is the directory. > Is there a way to get the directory listing in plain text > without all the HTML garble-de-gook? I would like some > thing like I would see with "ls". > If you're getting html, other than fixing that in the first place, name the resulting file something.html and then view it with a browser. Michael > Many thanks, > -T >
Back to comp.os.linux.misc | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
How can I get a plain text directory with wget? Todd <Todd@invalid.invalid> - 2012-02-05 19:18 -0800
Re: How can I get a plain text directory with wget? Sam <sam@email-scan.com> - 2012-02-05 21:31 -0600
Re: How can I get a plain text directory with wget? Todd <Todd@invalid.invalid> - 2012-02-05 19:44 -0800
Re: How can I get a plain text directory with wget? Sam <sam@email-scan.com> - 2012-02-06 05:51 -0600
Re: How can I get a plain text directory with wget? Chick Tower <c.tower@deadspam.com> - 2012-02-06 19:30 +0100
Re: How can I get a plain text directory with wget? root <NoEMail@home.org> - 2012-02-06 18:43 +0000
Re: How can I get a plain text directory with wget? "Chris F.A. Johnson" <cfajohnson@gmail.com> - 2012-02-07 16:37 -0500
Re: How can I get a plain text directory with wget? Michael Black <et472@ncf.ca> - 2012-02-05 22:27 -0500
Re: How can I get a plain text directory with wget? Todd <Todd@invalid.invalid> - 2012-02-05 19:41 -0800
Re: How can I get a plain text directory with wget? Dan Espen <despen@verizon.net> - 2012-02-06 08:33 -0500
Re: How can I get a plain text directory with wget? Bit Twister <BitTwister@mouse-potato.com> - 2012-02-06 04:10 +0000
Re: How can I get a plain text directory with wget? Todd <Todd@invalid.invalid> - 2012-02-05 23:03 -0800
Re: How can I get a plain text directory with wget? Allodoxaphobia <knock_yourself_out@example.net> - 2012-02-06 20:04 +0000
Re: How can I get a plain text directory with wget? Michael Black <et472@ncf.ca> - 2012-02-06 17:39 -0500
csiph-web