regular expression

Regular Expressions in C

1.0 Introduction Regular expressions are used for searching strings in text files. A regular expression is a string of characters and may contain certain metacharacters. A metacharacter has a special meaning. A regular expression denotes a set of strings. Or, in other words, there is a set of strings that are matched by it. The …

Regular Expressions in C 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 »