Using grep for web development

Last Updated: Feb. 17th 2022 at 7:02pm Tags: bash blog grep linux

grep is a great tool for web development and System administraton.

grep is a great tool for web development.
I’ve included a script to make things a little bit easier for searching your files for code.

grep is a handy tool I use to find code to modify certain things in web design. Wikipedia’s definition of grep is as follows:

grep is a command line text search utility originally written for Unix. The name is taken from the first letters in global / regular expression / print, a series of instructions for the ed text editor. The grep command searches files or standard input globally for lines matching a given regular expression, and prints them to the program’s standard output.

Below is the code I’ve added to my path so I can easily run grep without having to type everything out repeatedly

#!/bin/bash
searchterm=$1
clear;
grep -iIrn "$searchterm" * | grep -v .svn

Comments

You need to login to comment.