Archive

Archive for March, 2012

Print recent pidgin messages

March 14, 2012 Leave a comment

Below is a command I use once in a while to print the last few lines of any pidgin log modified in the past 24 hours. I find it useful if I am logged in remotely to a machine currently running pidgin. Also, it sometimes happens that I am unable to review new messages before pidgin closes due to a variety of unexpected circumstances, such as power outages.

$ find ~/.purple/logs \
> -type f \
> -mtime -1 \
> ! -wholename '*/.system/*' \
> -print0 \
> | sort -z \
> | xargs -0 tail \
> | less -RF

Obviously, it makes sense to assign an alias to this long command.

Advertisements
Categories: Uncategorized Tags: , ,