Global replace with awk

change start to end in all *.txt files

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

Posted in Uncategorized | Comments Off on Global replace with awk

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 , , , | Comments Off on Remote syslog by host