command to display all text files inside a directory

David Gomez tsukebumi at gmail.com
Mon Jun 26 12:42:12 UTC 2006


On Mon, 2006-06-26 at 15:49 +0530, Kaushal Shriyan wrote:
> Hi ALL
> 
> which command is used to display all text files inside a particular directory
> 

That depends on what do you mean by 'text files'

I would use something like this.

find <start_directory> -type f -exec file {} \| grep
<some_strings_matching_text_files> \; -print





More information about the users mailing list