Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Parse apache error_log



Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx> wrote in
news:20150501220311.6f101a62@xxxxxxxxxxxx: 

> On Fri, 1 May 2015 15:41:37 +0000 (UTC)

> 
> Well, you *could* do this...
> 
> log=wherever
> fgrep -h "$(tail -1 $log | sed 's/^\[\([^]]*\)\].*/\1/')" $log
> 
> pws
> 
Yep Does the job. 


-- 
zzapper
https://twitter.com/dailyzshtip

---
This email has been checked for viruses by Avast antivirus software.
http://www.avast.com




Messages sorted by: Reverse Date, Date, Thread, Author