crossley    2003/12/11 23:39:39

  Modified:    site/community committer.html
  Log:
  Further clarify the dos2unix stuff.
  
  Revision  Changes    Path
  1.4       +19 -10    cocoon-site/site/community/committer.html
  
  Index: committer.html
  ===================================================================
  RCS file: /home/cvs/cocoon-site/site/community/committer.html,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- committer.html    4 Dec 2003 01:03:57 -0000       1.3
  +++ committer.html    12 Dec 2003 07:39:39 -0000      1.4
  @@ -264,21 +264,30 @@
           (it is supposed to convert to UNIX line-endings when you commit).
         </p>
   <p>
  -        Here is one way to find files that have DOS line-endings:
  -        <span class="codefrag">find . -type f | xargs grep -l '^M'</span>
  -        (to add the ^M use "Ctrl-v Ctrl-m" at the command-line).
  +        Here is one UNIX way to find all plain-text files that have DOS
  +        line-endings (and maybe mixed line-endings).
  +        There seem to be many images and jar archives that contain
  +        carriage-returns, so to list only the plain-text files:
         </p>
  +<pre class="code">
  +find . -type f | xargs grep -l '^M' | xargs file | \
  +grep -i -w text | cut -f1 -d:
  +
  +To add the ^M use "Ctrl-v Ctrl-m" at the command-line.
  +Note that copy-and-paste will not work.
  +The -w can be omitted, but might then match some extra filenames.
  +
  +      </pre>
   <p>
  -        Here is one way to find files that have any hidden control
  -        characters:
  -        <span class="codefrag">find . -type f | xargs grep -l 
'[[:cntrl:]]'</span>
  +        To instead find <em>all</em> files (including images and foreign
  +        jar archives) that have DOS line-endings:
  +        <span class="codefrag">find . -type f | xargs grep -l '^M'</span>
         
   </p>
   <p>
  -        There seem to be many images and jar archives that contain
  -        carriage-returns, so to list only the plain-text files:
  -        <span class="codefrag">find . -type f | xargs grep -l '^M' |
  -        xargs file | grep -i -w text | cut -f1 -d:</span>
  +        Here is one way to find files that have <em>any</em> hidden control
  +        characters:
  +        <span class="codefrag">find . -type f | xargs grep -l 
'[[:cntrl:]]'</span>
         
   </p>
   </div>
  
  
  

Reply via email to