LineBreakTool - convert linebreaks of text files


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.

SYNOPSIS -h|--help|--version|--copying [-t|--test] [-v|--verbose] <filename> [<type>] (-c|--convert) [-v|--verbose] <filename> [<from>] <to>


-h | --help
Output usage information and exit.

Output version information and exit.

Output the General Public License version 2 and exit.

-v | --verbose
Be verbose about what happens.

The name of the file to treat.

-t | --test
Test the type of file.

If <type> is given it prints if the type of the file matches <type>.

The type of the file will be compared with <type>.

-c | --convert
Convert the file to the given type (<to>).

The file will only be converted if its type matches <from>.

The file will be converted to the type <to>.


Requires strict, Fcntl, IO::Seekable and File::Recurse.


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 distributed under the terms of the GNU General Public License.

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.






Copyright 2001 Sven Kleese, Hamburg (Germany)

$Date: 2001/11/01 14:23:00 $ $Revision: $