Linux/Unix How-to Search for Document/eBook with find and grep Commands

November 26th, 2014 by thelinuxevangelist

Refining find Results with a grep Shell Pipe



The Linux/Unix Tip Show How-to easy Searching for Documents and eBooks Files on Shell Command Line Terminal with the ‘find’ and ‘grep’ Shell Commands.

To Achieve the Result I’ll Make simply use of a Shell Pipeline with the ‘find’ and the ‘grep’ Terminal Shell Commands.

Linux How-to Find/Search for Documents/eBooks - featured
  1. How-to Easy Search for Files/Directories/Paths on Command Line:

    Shell find Command Quick-Start


  2. Using find & grep to Searching for Document/eBook

    find /PATH/2/START -iname KEYWORD | grep EXTENSION

    Example:

    find $HOME/Downloads -iname bible | grep .pdf

    Some of used Documents Extension to Include are: doc/pdf/mob/epub.

Share on Tumblr

Tags: , , , , , , , , , , , , , , , ,


Comments are disabled