Posts

Showing posts from December, 2013

Basic Search utility

The following is a searching utility for file based searching in linux environment. The code works perfectly for Ubuntu-12.04 version, but as it is untested on other versions (some basic tweeks might be required on other versions of linux). To start using this utility, all you need to do is copy the same code in a bash file (.sh file), and after setting the execute permissions, source the same in .profile or .bashrc file on home directory. The file can be named 'searchUtil.sh' and for sourcing, use the following command: source ${filePath}/searchUtil.sh //Code follows #!/usr/bin/env bash #====================================================================== # File: searchUtil.sh # Author: Lovish #---------------------------------------------------------------------- # Purpose: Searching utility using 'find' and 'grep' for ease of usage. #====================================================================== __seHelp () { cat << EOF ---------