Re: command to display all text files inside a directory

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

 



David Gomez schreef:
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


  

Or maybe you just mean

ls -als *.txt

Mike

-- 
ATN Networks
Dirk de Derdelaan 215
3132 HE VLAARDINGEN
url: www.atn-networks.nl
mail: mike@xxxxxxxxxxxxxxx
mobiel: 06 - 28 11 49 91

Voor al uw hostinggebonden oplossingen

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

  Powered by Linux