Re: command to display all text files inside a directory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux