Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Nächste Überarbeitung
Vorhergehende Überarbeitung
pub:linux-bash-commands [2013/06/14 10:24] – Externe Bearbeitung 127.0.0.1pub:linux-bash-commands [2026/09/10 21:51] (aktuell) – gelöscht Marco Krage
Zeile 1: Zeile 1:
-====== Linux Bash Commands ====== 
- 
- 
-Grep in tar.gz (tgzgrep) 
-<code bash>function tgzgrep { rm -R /tmp/tgzgrep > /dev/null; mkdir /tmp/tgzgrep; tar -C /tmp/tgzgrep -xzf $2; grep -i "$1" /tmp/tgzgrep/*; }</code> 
- 
- 
-Check Postfix Maillog IPs with DNSBL 
-<code bash>tac /var/log/mail.log | egrep "postfix-in(.*)client" | egrep -o "([0-9]{1,3}\.){3}[0-9]{1,3}" | head -n 5 | while read line ; do ./check_dnsbl.sh -H $line ; done</code> 
- 
-Run command aganst reqursive filelist 
-<code bash> 
-find ./ -type f -print0 | while read -d $'\0' -r file ; do 
-  md5sum "$file" | grep --line-buffered --only-matching -m 1 '^[0-9a-f]*' | sort 
-done 
-</code> 
- 
- 
-Functions in Bash 
-<code bash> 
-functionname() { 
-  echo $1 
-} 
-</code> 
- 
  
pub/linux-bash-commands.1371198246.txt.gz · Zuletzt geändert: (Externe Bearbeitung)