Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen RevisionVorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
pub:linux-bash-commands [2013/07/15 13:04] – Marco Kragepub: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> 
- 
- 
-<code bash>function mailgrep { rm -R /tmp/mailgrep; mkdir /tmp/mailgrep; tar -C /tmp/mailgrep -xzf 2013-03-20.mailarchive-in.tar.gz; grep -i "$@" /tmp/mailgrep/*; }</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.1373886269.txt.gz · Zuletzt geändert: (Externe Bearbeitung)