Streamprocessing - Verarbeitung von Streams


Die Verarbeitung von Zeichenketten oder Datenströmen (Streams), auch Textmanipulation genannt, ist im Allgemeinen ein mächtiges Werkzeug. Innerhalb von Minuten lassen sich Skripte schreiben, die relevante Daten aus einer Datei, dem Internet oder dem Linux-Kernel filtern und in aufbereiteter Form anzeigen, speichern oder eine passende Aktion auslösen. Zum verarbeiten von Zeichenkette stehen unter Linux zahlreiche Werkzeuge zur Verfügung.

LinuxAwk awk - pattern scanning and text processing language
LinuxGrep grep - print lines matching a pattern
LinuxSed sed - stream editor for filtering and transforming text
LinuxCat cat - concatenate files and print on the standard output
LinuxTac tac - concatenate and print files in reverse
LinuxCut cut - remove sections from each line of files
LinuxTr tr - translate or delete characters
LinuxOd od - dump in octal and other formats
LinuxColumn column - columnate lists
LinuxFold fold - wrap each input line to fit in specified width
LinuxFmt fmt - simple optimal text formatter
LinuxNl nl - number lines of files
LinuxPr pr - convert text files for printing
LinuxComm comm - compare two sorted files line by line
LinuxDiff diff - compare files line by line
LinuxSort sort - sort lines of text files
LinuxXargs xargs - build and execute command lines from standard input
LinuxTee tee - read from standard input and write to standard output and files
LinuxHead head - print the first lines of each file to standard output
LinuxTail tail - print the last lines of each file to standard output
LinuxIconv iconv - converts the encoding of characters from one coded character set to another
LinuxJoin join - join lines of two files on a common field
LinuxPaste paste - merge lines of files
LinuxUniq uniq - report or omit repeated lines
LinuxWc wc - print the number of newlines, words, and bytes in files
LinuxPrintf printf - formatierte Ausgabe
LinuxConvertToHtml Html conversion - conversion to HTML
LinuxUuencode uuencode - escape all non ascii characters
LinuxCpipe cpipe - Counting pipe

Run command on every occurrence of grep
dmesg | grep Product | while read line ; do echo "$line" ; done




Siehe auch
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki