Hi:
perl -e 'print "hello world!\n"'
A simple filter:
perl -ne 'print if /REGEX/'
Filter out blank lines (in place):
Hi:
perl -e 'print "hello world!\n"'
A simple filter:
perl -ne 'print if /REGEX/'
Filter out blank lines (in place):
| #!/bin/bash | |
| ## | |
| ## Simple logging mechanism for Bash | |
| ## | |
| ## Author: Michael Wayne Goodman <[email protected]> | |
| ## Thanks: Jul for the idea to add a datestring. See: | |
| ## http://www.goodmami.org/2011/07/simple-logging-in-bash-scripts/#comment-5854 | |
| ## Thanks: @gffhcks for noting that inf() and debug() should be swapped, | |
| ## and that critical() used $2 instead of $1 |
| server { | |
| listen 80; | |
| server_name localhost; | |
| # ... other default site stuff, document root, etc. ... | |
| location ~ ^/~(?<userdir_user>.+?)(?<userdir_uri>/.*)?$ { | |
| alias /home/$userdir_user/public_html$userdir_uri; | |
| index index.html index.htm index.php; | |
| autoindex on; |
| #!/bin/bash | |
| # | |
| # Init file for Ping server daemon | |
| # | |
| # chkconfig: 2345 55 25 | |
| # description: Ping server daemon | |
| # | |
| # processname: ping | |
| # pidfile: /var/run/ping.pid |