Skip to content

Commit 9b78cfb

Browse files
dos2unix shell script
1 parent 5a10e39 commit 9b78cfb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

dos2unix.sh

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
for ext in c cpp h; do
3+
find -iname \*.$ext | while read X; do dos2unix -- "$X" || exit 1; done
4+
done
5+

0 commit comments

Comments
 (0)