New: Add script to detect DOS (non Linux) files.
This commit is contained in:
parent
29e6d01e51
commit
ff24a7df67
15
dev/finddosfiles.sh
Executable file
15
dev/finddosfiles.sh
Executable file
@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
#------------------------------------------------------
|
||||
# Script to find files that are not Unix encoded
|
||||
#
|
||||
# Laurent Destailleur - eldy@users.sourceforge.net
|
||||
#------------------------------------------------------
|
||||
# Usage: finddosfiles.sh
|
||||
#------------------------------------------------------
|
||||
|
||||
# To detec
|
||||
find . -type f -iname "*.php" -exec file "{}" + | grep CRLF
|
||||
|
||||
# To convert
|
||||
#find . -type f -iname "*.php" -exec dos2unix "{}" +;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user