crossley 2003/12/11 23:39:20
Modified: src/documentation/content/xdocs/community committer.xml
Log:
Further clarify the dos2unix stuff.
Revision Changes Path
1.5 +20 -11
cocoon-site/src/documentation/content/xdocs/community/committer.xml
Index: committer.xml
===================================================================
RCS file:
/home/cvs/cocoon-site/src/documentation/content/xdocs/community/committer.xml,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- committer.xml 11 Dec 2003 00:55:29 -0000 1.4
+++ committer.xml 12 Dec 2003 07:39:20 -0000 1.5
@@ -79,23 +79,32 @@
</p>
<p>
- Here is one UNIX way to find all files that have DOS line-endings:
- <code>find . -type f | xargs grep -l '^M'</code>
- (To add the ^M use "Ctrl-v Ctrl-m" at the command-line.
- Note that copy-and-paste will not work.)
+ 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>
+ <source><![CDATA[
+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.
+]]>
+ </source>
+
<p>
- Here is one way to find files that have any hidden control
- characters:
- <code>find . -type f | xargs grep -l '[[:cntrl:]]'</code>
+ To instead find <em>all</em> files (including images and foreign
+ jar archives) that have DOS line-endings:
+ <code><![CDATA[find . -type f | xargs grep -l '^M']]></code>
</p>
<p>
- There seem to be many images and jar archives that contain
- carriage-returns, so to list only the plain-text files:
- <code>find . -type f | xargs grep -l '^M' |
- xargs file | grep -i -w text | cut -f1 -d:</code>
+ Here is one way to find files that have <em>any</em> hidden control
+ characters:
+ <code>find . -type f | xargs grep -l '[[:cntrl:]]'</code>
</p>
</section>