Or, if there's any real need, may I suggest this simple patch for making a wrapper in contrib/wcat? :-9
Best regards, /Pär 2014-11-19 22:34 GMT+01:00 William Tracy <[email protected]>: > I meant to send this to the whole list, sorry. > ---------- Forwarded message ---------- > From: "William Tracy" <[email protected]> > Date: Nov 19, 2014 1:32 PM > Subject: Re: [Bug-wget] wcat? > To: "Dagobert Michelsen" <[email protected]> > Cc: > > Two thoughts: > > 1. Curl already behaves this way out of the box, so the path of least > resistance here would be to just use curl. Curl lacks wget's crawling > features, but I don't see how you could use those features in this context, > anyway. > > 2. If you are dead set on having a wcat command, you might have more luck > getting this implemented by the package maintainer for your distribution > than by the core wget team. > > William > On Nov 19, 2014 12:41 PM, "Dagobert Michelsen" <[email protected]> wrote: > > > Hi Tim, > > > > > Am 17.11.2014 um 20:49 schrieb Tim Rühsen <[email protected]>: > > > > > > Am Montag, 17. November 2014, 09:05:52 schrieb Alfred M. Szmidt: > > >> It would be nice if wget also installed a wcat command which would > > >> default to something like, > > >> > > >> wget -o /dev/null -O - "$@" > > >> > > >> Would it be possible to add something like that? > > > > > > Something like > > > > > > $ alias wcat='wget -o /dev/null -O -' > > > $ wcat www.example.com > > > > > > ? > > > > > > Put the alias into your ~/.bash_aliases or ~/.bashrc and that's it. > > > > > > What have I missed ;-) ? > > > > I think Alfred wants to have a behaviour similar to to gzip/gzcat where > > you could also have similar structure but nonetheless gzip ships gzcat, > > gzgrep etc. > > > > > > Best regards > > > > — Dago > > > > -- > > "You don't become great by trying to be great, you become great by > wanting > > to do something, > > and then doing it so hard that you become great in the process." - xkcd > > #896 > > > > >
From 2c0b9fd4b0ca6aa81467c4cc892af8c5cdf3e0df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A4r=20Karlsson?= <[email protected]> Date: Wed, 19 Nov 2014 22:44:50 +0100 Subject: [PATCH] Added wcat wrapper --- contrib/wcat | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 contrib/wcat diff --git a/contrib/wcat b/contrib/wcat new file mode 100755 index 0000000..af37200 --- /dev/null +++ b/contrib/wcat @@ -0,0 +1,8 @@ +#!/bin/sh +WGET=`which wget` +if [ ! -x "${WGET}" ]; then + echo "No wget executable found in PATH" + exit -1 +fi + +${WGET} -q -O - "$@" -- 2.0.4
