« Home | REBOOTING BECAUSE OF FORK BOMBS » | Get the hidden files » | Building a Linux supercomputer using SSH and PVM » | Accessing Positional Variables » | Linux Renaming Sets of Files » | Separate Shell Command history » | NFS between Solaris & Linux » | How To Set Up Database Replication In MySQL » | My sysadmin toolbox » | Network Monitoring with Zabbix » 

Friday, May 05, 2006 


In some directories such as /etc you have a mix of file types. You may want to grep out a string from one of the files but don't want to worry about the binaries, data, etc. To accomplish
this, searching only text files do this:

grep `file * | egrep 'script|text' | awk -F: '{print $1}'`

Links to this post

Create a Link