Find out how old a web page is

curl -Is http://osswin.sourceforge.net/ | grep Mod
I is for headers only s is for silence curl -Is outputs ONLY headers the pipe and grep is to filter them to Modified only..
Sample Output
Last-Modified: Wed, 08 Feb 2012 20:14:53 GMT

1
By: Gunni
2012-05-01 21:42:42

1 Alternatives + Submit Alt

  • I used to use the Firefox "View page info" feature a lot to determine how stale the web page I was looking at was. Now that I use mostly Chrome I miss that feature, so here is a command line alternative using wget. The -S says to display the server response, the --spider says to not download any files/pages, just fetch the header. The output goes to stderr, so to grep it you use 2>&1 to combine the stderr stream with stdout, the pipe that to grep for Last-Modified. You can use curl instead if you have it installed, like this: curl --head -s http://osswin.sourceforge.net | grep Mod Show Sample Output


    6
    wget -S --spider http://osswin.sourceforge.net/ 2>&1 | grep Mod
    dmmst19 · 2012-04-18 03:43:33 0

What Others Think

The information you provided was very helpful to me. Thanks so much for your post, I'll be watching for more wordle solver tiny fishing
daisymaria494 · 23 weeks and 4 days ago
Drivers Lice se href We are here so that you do not have to waste time on driving school programs if you absolutely want to obtain a permit to operate a vehicle. As a leading manufacturer of counterfeit IDs, we design and manufacture genuine and counterfeit driving licenses and IDs. We have what it takes to create documents that are in no way different from real documents. We are certified manufacturers of novelty documents that can be used for legal purposes. Our fake US driving license are produced with a high definition printer, which is why our fake licenses are of exceptional print quality and give a full impression of a genuine driving license. We also offer genuine and counterfeit passports for sale at reasonable prices, offering top quality and affordable. We advise our customers to have genuine documents presented to us if they want to use a genuine, registered driving license. Our real paperwork is registered in the corresponding state or national database system. For genuine, registered licenses, we register the information in a database or system. Since we have been in business for more than 30 years; we have been a reliable source for fake government ID cards, fake driving licenses, fake student ID cards, fake press cards and fake photo and ID cards. Our fake licenses all carry the original seal and have the same design, and they are delivered in the original look and can be found with the naked eye of nobody. Instead of buying online documents, we believe in delivering value to our customers by offering real and popular license copies at a reasonable price. First, send us high quality photos and basic details such as your name and address. Unlike counterfeit IDs and passports, you can use all the information you want and do not need to upload biometric data. Although we sell novelties, we do not recommend them for official purposes such as work or travel as they are likely to cause serious legal problems with the police. Buy fake driving licenses from a professional and trusted document manufacturer. We have a team of professionals with many years of experience in the production of genuine and forged driving licenses and other documents and are good producers of genuine quality documents. Do not fall into one of the traps of ordering documents by fraud or scam that sells you a fake passport that is disguised as genuine. Buying a fake driving license is like forgetting the time-consuming driving school. There is one particular facet that distinguishes genuine driving license from high-quality genuine identity cards, and that is that high-quality fake identity cards and genuine identity cards are recognized by professionals. When buying a genuine, good quality driving license, always look for a specialist who looks genuine. A driving license is an official document that allows a particular person to use one or more types of motorized vehicles such as motorcycles, cars, trucks and buses on public roads. While driving tests are difficult, driving licenses can be made online by the government. You may come across a number of online companies that offer fake real driving licenses, but some people love to ride with Pro Docs Express. We can present a fake identity card that is identical to a genuine identity card or driving license. In British EnglishA and in many former British colonyA it is a driving license. The UK license are registered with the DVLA (Drivers Vehicle Licensing Agency) and the US license with the DMV (Department of Motor Vehicles). Remember that incorrect licenses can’t be renewed because they are not registered in the database. The secret feature of genuine and forged IDs and driving licenses is that there is no duplicate imprint on the forged copy. None of the information on the document is registered in the database system. Digital novelty documents have developed a unique technique for producing passports, visas, SSNs, driving licenses, identity cards, birth certificates, diplomas and many other high-quality documents. From many countries with one document, you can get a fake driving license from many countries including United States, Australia, China, Argentina and Sweden. The plastic is about the size of a credit card and allows a particular person to operate one or more kinds of motorized vehicles. The printing layers are micro-printed on an offset printer with die-cutting and repackaging for secret import. Beveled edges and windows duplicate the photo of the card holder and engrave it with the laser. For this design, we use a new template used by the DMV 2019 to create a fake New York ID. We use the latest technology and high quality materials to produce high quality driving licenses for your country. These documents are not registered in the DMV system, but we know how to make them look like government documents and government owned documents and we can sue anyone who updates the fake driver license app to have the latest hologram secret features. We have many points in life that are meaningless, but they offer us great moments and memories that can be cherished throughout our lives. We give you the opportunity to save your time through driving lessons and tests. The One Document team is ready to take on any challenge and we are committed to innovation, adaptation and change. Thanks to our internal contacts we are constantly informed about the latest changes
lauraflurr · 23 weeks and 4 days ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: