Tag: search

Movement commands in vi

Move by one character h - Move cursor left j - Move cursor down k - Move cursor up l - Move cursor right Move by word w or W - Move forward by word, cursor is beginning of the word b or B - Move backward by word, cursor is beginning of the word … Continue reading Movement commands in vi

Regular expression

One can use the regular expressions to match in vi, grep, sed and awk. [a-d] - Match one character with in a-d i.e. a, b, c, d [^a-d] - Match one character not in the range a-d \<test\> - Match whole word test test\> - Match words that ends with test \<test\> \1ing - Match … Continue reading Regular expression