Archiv für Dezember 2006

Geile Unix Shell Tools

Dezember 6, 2006

Was jeder kennen sollte:

find: find files

basename: return non-directory portion of a pathname

dirname: return the directory portion of a pathname

grep: search a file for a pattern

cut: cut out selected fields of each line of a file

sed: stream editor

awk: pattern scanning and processing language

cat: concatenate and print files

tail: copy the last part of a file

head: copy the first part of files

sort: sort, merge, or sequence check text files

uniq: report or filter out repeated lines in a file

diff: compare two files

csplit: split files based on context

comm: select or reject lines common to two files

tee: duplicate standard input (e.g. save an intermediate form of data in a pipeline)

join: relational database operator

paste: merge corresponding or subsequent lines of files

pr: paginate or columnate FILE(s) for printing

fold: filter for folding lines

tr: Translate, squeeze, and/or delete characters

iconv: Convert file codeset (e.g. iso-8859-1 to utf8)

unexpand: convert spaces to tabs

Und das meiste davon auch für Windows: UnxUtils!!

Die Tools dos2unix und unix2dos gibt es für Windows (als uddu.zip) von Clem Dye

– Und wenn wir schon dabei sind…

vi: screen-oriented (visual) display editor

ex: text editor

cal: print a calendar

lex: generate programs for lexical tasks

yacc: yet another compiler compiler

nm: write the name list of an object file