Home Messages Index
[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index

Re: detecting file type

  • Subject: Re: detecting file type
  • From: Roy Schestowitz <newsgroups@xxxxxxxxxxxxxxx>
  • Date: Sat, 24 Dec 2005 08:54:30 +0000
  • Newsgroups: alt.linux
  • Organization: schestowitz.com / MCC / Manchester University
  • References: <zoudnWO2aPjrbzHeRVn-uw@comcast.com>
  • Reply-to: newsgroups@xxxxxxxxxxxxxxx
  • User-agent: KNode/0.7.2
__/ [Eric] on Saturday 24 December 2005 07:02 \__

> Hi,
>   I've got some files on my disk that i find are in dos text format. This
> was unexpected and now I am wondering how many are like that. Is there a
> tool or thing like find that will tell me what files are in dos format
> ie something like:    find . -type f -format dos -print
> Thanks
> Eric

This will have pitfalls, but regardless:

find . -type f  | grep '.dos' | wc -l


Hope it helps,

Roy

-- 
Roy S. Schestowitz      | "The speed of time is one second per second"
http://Schestowitz.com  |    SuSE Linux     |     PGP-Key: 0x74572E8E
  8:50am  up 13 days 16:01,  14 users,  load average: 0.22, 0.49, 0.68

[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index