All,
I created a script;
/usr/bin/perl -pe 's/\d+/localtime $&/e;'
and save it to be a file named "convert" in directory /bin. Then I run "chmod +x /bin/convert"
After all, I run "cat access.log | /bin/convert".
IT WORKS !
I got a readable format time & date of my access.log. I don't know whatever my doing is perfect or not, but I got what I want. Instead remembering unfriendly parameter of perl, I prefer to run my convert file to read my log file.
Many thanks for Henrik, Thomas, and Leonardo that gave me suggestions to get this solution.
Best Regards,
Awie
-- To unsubscribe, see http://www.squid-cache.org/mailing-lists.htmlReceived on Tue Feb 06 2001 - 01:45:01 MST
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:57:53 MST