User Tools

Site Tools


kurs:6._einheit

This is an old revision of the document!


Oneliner

"Füllstand" von Filesystemen extrahieren

df -k | perl -ne '/(\d{1,3})%/; print "$1\n"'

Vorkommen z�hlen

perl -0pe'$_=()=/\.at/g' filename

Ersetzen in Files

perl -pi.bak -e 's/-lapreq//' Request/Makefile.PL Cookie/Makefile.PL

Alle Tasks "notepad" killen

tasklist | perl -ne "if (/notepad/i) {@a=split(' ', $_); system('taskkill /PID '.$a[1])}"

Packages

  • Getopts
  • Storable
  • Date::Calc, Date::Manip

Debugger

  • perl -d script.pl

neue Module /Objekt orientiertes Perl

Neues Projekt Mit

h2xs -XAn Test

anlegen

kurs/6._einheit.1274174146.txt.gz · Last modified: 2014/09/10 21:22 (external edit)