用sed还是gawk能够达到这个效果?
执行curl -I www.sina.com后
会返回一大堆网址的headers
HTTP/1.1 200 OK
Server: nginx
Date: Sat, 05 Jul 2014 08:33:42 GMT
Content-Type: text/html
Last-Modified: Sat, 05 Jul 2014 08:32:42 GMT
Vary: Accept-Encoding
Expires: Sat, 05 Jul 2014 08:34:42 GMT
Cache-Control: max-age=60
X-Powered-By: schi_v1.02
Age: 11
Content-Length: 536697
X-Cache: HIT from 236-32.D07072034.sina.com.cn
请问,我想得到Last-Modified这一行的这个日期该怎么写shell?
要得到这个日期Sat, 05 Jul 2014 08:32:42 GMT,不要任何其他内容