Posts from '2005'
Happy Perl year
```perl perl -e '$\=pack("C*",@ARGV);while(){/([^\/]+)$/; $_=$1;print }' 44 32 97 32 104 97 112 112 121 32 110 101 119 32 121 101 97 114 10 ``` Und nicht vergessen.. http://www.strcat.de/eigenes/neujahr.txt For comments, please send me an email read more →
Tip #76 - Modifiers usage
<i># Remove a trailing pathname component, leaving the head. This works like `dirname'.</i><br /> <br /> $ echo =ls(:h)<br /> <br /> /bin<br /> <br /> <br /> <i># Remove all leading path ... read more →
Drecks Rasiermesser..
Die Dinger werden auch immer teurer. Fuer mein Neues hab ich 45¤ geloehnt. Das alte Rasiermesser hat das zeitliche gesegnet.. kaum hat man(n) das Ding 12 Jahre, schon is es kaputt \*narf* Ich bin ehrlich mal gespannt was als naechstes den Gei ... read more →
Tip #75 - Show only files are owned from group `users'
$ ls -l *(G[users]) For comments, please send me an email read more →
Tip #74 - remove empty directories afterwards
$ rmdir ./**/*(/od) 2> /dev/null For comments, please send me an email read more →
Tip #73 - find all the empty directories in a tree
$ for f in ***/*(/l2); do foo=($f/*(N)); [[ -z $foo ]] && print $f; done # Since Zsh 4.2.1(?) the glob qualifier F indicates a non-empty directory. $ ls -ld *(/^F) For comments, please send me an email read more →
Tip #72 - find all files without a valid owner and change ownership
$ chmod someuser /**/*(D^u:${(j.:u:.)${(f)"$(</etc/passwd)"}%%:*}:) For comments, please send me an email read more →
Tip #71 - display the 5-10 last modified files
$ print -rl -- /path/to/dir/**/*(D.om[5,10]) For comments, please send me an email read more →
Tip #70 - Print only 5 lines by "ls" command (like ``ls -laS | head -n 5'')
$ ls -fl *(DOL[1,5]) For comments, please send me an email read more →
Tip #69 - find - and list - the ten newest files in directories and subdirs (recursive)
$ print -rl -- **/*(Dom[1,10]) For comments, please send me an email read more →
Tip #68 - Show only empty files which nor `group' or `world writable'
$ ls *(L0f.go-w.) For comments, please send me an email read more →
Tip #67 - find most recent file in a directory
$ setopt dotglob ; print directory/**/*(om[1]) For comments, please send me an email read more →
Bittorrent regelt ..
irgendwie zumindest.. bis vor kurzem hab ich fuer jedes Torrent eine neue GNU Screen-Session gestartet und dann btdownloadcurses.py foobar.torrent gestartet, bis ich letzte Woche rtorrent gefunden hab. Mit dem kann man ultiple Downloads starten, was ... read more →
Mein erstes Mal!
Nicht was ihr denkt! Ich war heute mit einem guten Freund in Regensburg beim Snooker (wir spielen schon seit etlichen Jahren hobbymaessig Billard). Normalerweise liegen meine/unsere Breaks bei max. 80, aber heute hab ich mein erstes Century Break ges ... read more →
exit-Status von Prozessen
Jungs.. bittebittebitte.. mit Sahnehuetchen und Zucker obendrauf.. definiert in euren Programmen den exit-Status! Das ist kein "optionales Feature", sondern sollte IMO zum Standard von Quelltexten gehoeren. Wieso? Ganz einfach. Wenn ein Pro ... read more →
~/.zsh* - Update
Ich hab gestern meine Konfigurationsdateien fuer die Z-Shell geupdatet; zu finden sind die mit all den anderen Files unter http://www.strcat.de/dotfiles/#zsh. Die restlichen Konfigurationsdateien (Slrn, Vim, Mailfilter, ..) sind noch die alten Versio ... read more →
Frohe Weihnachten.
Aber nicht (mit) mir! Ich hasse dieses (vor)weihnachtliche Heileheilesegen-Geschwafel. Mich kotzen diese alljaehrlichen Betteleien und Spendenaktionen fuer Joe Random aus Hinteruspekistan im Radio/TV/Fussgaengerzone/.. an. Mich langweilen die Weichei ... read more →
Verbindungsabbrueche mit T-Online..
Bis jetzt hatte ich immer Probleme mit meiner Verbindung, wenn Filesharing-Programme oder auch CVS, .. laenger liefen. Die Probleme aeusserten sich dahingehend, dass die Verbindung abschmierte. Die Statusanzeigen am Router/Modem liefen zwar noch, ab ... read more →
Tip #66 - Sort the output from `ls -l' by file size
$ ls -fld *(OL) For comments, please send me an email read more →
Tip #65 - delete only the oldest file in a directory
$ rm ./*filename*(Om[1]) For comments, please send me an email read more →