File indexing completed on 2024-05-12 04:17:32

0001 # ===========================================================
0002 #
0003 # This file is a part of digiKam project
0004 # https://www.digikam.org
0005 #
0006 # Date:        2011-11-02
0007 # Description: simple Bash script to replace CRLF by EOL
0008 #
0009 # Copyright (C) 2011-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
0010 #
0011 # SPDX-License-Identifier: BSD-3-Clause
0012 #
0013 # ============================================================
0014 
0015 #!/bin/bash
0016 
0017 for f in `find -iname \*`; do
0018     if file $f | grep "CRLF"
0019     then
0020         echo "Patched EOL of file: $f"
0021         tr -d '\15\32' < $f > $f.tr
0022         mv $f.tr $f
0023     fi
0024 done