I want to run
wget "URL" -SO /dev/null 2>&1 | grep "HTTP/\\|Age:\\|Last-Modified:"
but I want a alias so I can just type mywget and the URL and it will put the url in the right place and give me the output that I want without having to type that over and over again.:wall:
I am newbie to all of this stuff and learning as I go. Any help on this would be great!!
Thank you!!
I want the output to look like this
wget -SO /dev/null SLOT DANA : Slot Gacor Deposit Dana 10rb & Pulsa Tanpa Potongan Dengan RTP Slot Tertinggi 2>&1 | grep "HTTP/\\|Age:\\|Last-Modified:"
HTTP/1.1 200 OK
Last-Modified: Thu, 02 Dec 2010 23:03:08 GMT
This files doesn't have a age header so it doesn't show.
I don't want this:
wget -SO /dev/null SLOT DANA : Slot Gacor Deposit Dana 10rb & Pulsa Tanpa Potongan Dengan RTP Slot Tertinggi
--03:13:55-- SLOT DANA : Slot Gacor Deposit Dana 10rb & Pulsa Tanpa Potongan Dengan RTP Slot Tertinggi
=> `/dev/null'
Resolving furiousfanboys.com... 216.45.60.202
Connecting to furiousfanboys.com|216.45.60.202|:80... connected.
HTTP request sent, awaiting response...
HTTP/1.1 200 OK
Date: Tue, 10 May 2011 10:13:55 GMT
Server: Apache/2.2.15 (Unix) mod_ssl/2.2.15 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 mod_fcgid/2.3.5
Last-Modified: Thu, 02 Dec 2010 23:03:08 GMT
ETag: "16a8020-f944-496756cd3c300"
Accept-Ranges: bytes
Content-Length: 63812
Keep-Alive: timeout=1, max=50
Connection: Keep-Alive
Content-Type: image/jpeg
Length: 63,812 (62K) [image/jpeg]
100%[===========================================================================================================>] 63,812 --.--K/s
03:13:55 (1.39 MB/s) - `/dev/null' saved [63812/63812]
I want to be able to type
mywget SLOT DANA : Slot Gacor Deposit Dana 10rb & Pulsa Tanpa Potongan Dengan RTP Slot Tertinggi
and the out put be:
HTTP/1.1 200 OK
Last-Modified: Thu, 02 Dec 2010 23:03:08 GMT
putting the alias in bash is easy but I have no idea how to do this.
hope you like the photo