Global replace with awk

change start to end in all *.txt files

awk '{gsub("start", "end", $0); print > FILENAME}' *.txt

Posted in Uncategorized | Leave a comment

Remote syslog by host

Having a remote syslog server is very handy for storing logs from network devices. Having a easy way to store these logs is key to staying sane. One solution is to setup a syslog host and point devices to it. Normally this just fills the syslog file on the log host, but with syslog-ng, we can automatically create log files for each host sending data.
Continue reading

Posted in HowTo | Tagged , , , | Leave a comment