LineBreakTool - convert linebreaks of text files
linebreaktool -h|--help|--version
linebreaktool [-t|--test] [-v|--verbose] FILE [TYPE]
linebreaktool (-c|--convert) [-v|--verbose] FILE [TYPE] TYPE
With this script you can check if a text file is of a specific type and convert it to a different type.
Special feature is the ability of fixing files that were broken by wrong ftp upload and download mode (ascii/bin).
Supported file types are dos, mac, unix and broken.
It also runs under DOS.
(unix2dos dos2unix fixeol newline linebreak)
If you give a directory name all files will recursively be treated.
If TYPE is given it prints if the type of the file matches TYPE.
UNIX/System_administration
Win32
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
Jeffrey E.F. Friedl inspired me to implement the regex myself.
Copyright (C) 2001 2002 2003 Sven Kleese, Hamburg (Germany)
GONZO <gonzo@cpan.org>
$Name: v0-2pre1 $ $Date: 2003/02/19 13:29:53 $