Search squid archive

RE: Access.log time

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





>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




 



[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux