filter

tr command in Linux

1.0 tr The tr command is a filter which reads the standard input, translates or deletes characters and writes on its standard output. The tr command syntax is, tr [OPTION]… SET1 [SET2] tr transliterates characters from SET1 into corresponding characters of SET2 in input and writes resulting text on the standard output. For example, to …

tr command in Linux Read More »

awk Tutorial

1.0 awk awk is a filter which takes the input and gives output after matching desired patterns and doing processing linked to matched patterns. awk is well suited for processing voluminous raw text data and producing statistical reports from it. awk is named after the first character of the names of its designers, Al Aho, …

awk Tutorial Read More »

sed command in Linux

1.0 sed sed is a stream editor that accepts a list of commands and input file names. It applies the commands one by one on each line of input and writes the resulting lines on the standard output. The commands are separated by newlines. 2.0 sed Command syntax sed [OPTIONS] ‘list-of-sed-commands’ [input-file] … sed is …

sed command in Linux Read More »

grep Command in Linux

1.0 grep grep is a program for searching a given string pattern in files. It searches the files for the pattern and prints the lines that contain strings matching the pattern. For example, $ # grep pattern filenames … $ grep ‘hbox’ find.c GtkWidget *window, *scrolled_win, *hbox, *vbox, *find; hbox = gtk_hbox_new (FALSE, 5); gtk_box_pack_start …

grep Command in Linux Read More »

Network Traffic Control with tc command in Linux

1.0 Network Traffic Control Computer network traffic is the data moving across the network at a given time. Network bandwidth is the maximum amount of data that can be transmitted over the network in unit time. Computer networks face the possibility of network congestion, where excessive data is trying to pass through the network and …

Network Traffic Control with tc command in Linux Read More »