Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: grep and find file weirdness

by graff (Chancellor)
on Jun 21, 2007 at 04:23 UTC ( [id://622481]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ find /tmp/rja/find_test -type f -print0 |
      perl -0 -ne 'chomp;
      $t=do{local $/; open(T,"<",$_);<T>};
      print "$_ is completely CRLF\n" unless ( $t =~ /(?<!\r)\n/ )'
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://622481]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (3)
As of 2024-04-19 21:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found