Remove all comments and empty lines
Grep will remove all comments and sed will remove all empty lines # grep -v "^#" /etc/squid/squid.conf | sed -e '/^$/d' Same with sed # cat /etc/squid/squid.conf | sed '/ *#/d; /^…
2010-03-18
1 min
Grep will remove all comments and sed will remove all empty lines # grep -v "^#" /etc/squid/squid.conf | sed -e '/^$/d' Same with sed # cat /etc/squid/squid.conf | sed '/ *#/d; /^…
Cron: 30 23 * * 5 /root/backup_script backup_script #!/bin/bash FROM="/PROD/" FROMIP="192.168.142.146" TOIP="192.168.142.185" TO="/mirror" BLOG=$TO"/backup.log" function logmsg {…
alias command The alias command can be useful if you want to create a 'shortcut' to a command. The format is alias name='command' > alias home='cd /home/dave/public_html' This will…