>Hi everyone,
>Im looking how to change the time that appears in the access.log to
make it friendlier. Where can I change the code to do it? Thanks for
answering



A shell script:

$ cat squidtime.sh 
#!/bin/sh

perl -p -e 's/^([0-9]*)/"[".localtime($1)."]"/e' 


This lets me do:

$ cat access.log | squidtime.sh | less




 

Reply via email to