Hallo,
ich habe heute ein (für mich) ziemlich interessantes Paket entdeckt, moreutils.
Zu beziehen sind sie unter http://kitenet.net/~joey/code/moreutils/ oder über die Paketverwaltung von Debian.
Was sind die moreutils?
This is a growing collection of the unix tools that nobody thought to write thirty years ago.
So far, it includes the following utilities:
- isutf8: check if a file or standard input is utf-8
- sponge: soak up standard input and write to a file
- ts: timestamp standard input
- vidir: edit a directory in your text editor
- vipe: insert a text editor into a pipe
- combine: combine the lines in two files using boolean operations
- ifdata: get network interface info without parsing ifconfig output
- pee: tee standard input to pipes
- zrun: automatically uncompress arguments to command
- mispipe: pipe two commands, returning the exit status of the first
Vor allem vidir, vipe und ifdata sind 3 Werkzeuge die ich schon oft vermisst habe. ifdata ist vor allem eine große Ersparnis bei Netzwerkskripts.
Das wichtigste für mich:
Mit vidir kann man regexe auf Dateien anwenden, z.B.: vidir ~/Urlaubsfotos und darin ein %s/DSC1000/Urlaub07/g
vipe erlaubt die Bearbeitung einer Ausgabe nach einer pipe. cat bla| do bla | vipe
Über ifdata bekommt man ohne zu greppen einen Haufen angaben über die Netzwerkkarte.
Sponge (sauger) sammelt die komplette Ausgabe einer pipe und schreibt sie erst dann in eine Datei.
Lesezeichen