Article complet: How to search for text files under linux

07.07.08

Permalink Categories: GNU/Linux   English (EU)

How to search for text files under linux

Here's a nice command which leverages find and file to search for text/* mime type files amongst binary files:

Code:

find . -type f | xargs file -Ni | grep "text/" | cut -d":" -f 1 

Trackback address for this post:

http://www.vidal.biz/blogs/htsrv/trackback.php/1103

Comments, Trackbacks, Pingbacks:

No Comments/Trackbacks/Pingbacks for this post yet...

Comments are not allowed from anonymous visitors.

DraK's Klog

Septembre 2010
Lun Mar Mer Jeu Ven Sam Dim
<< <     
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30      

Rechercher

Catégories

Linkblog

Friends

Other

Syndiquez ce blog XML

Qu'est-ce que RSS?

powered by
b2evolution