fixfile convert encoding to UTF-8 and line endings to LF
doc generated from the script with gendoc
bash script, version=1.03

Synopsis

fixfile [options] [file file...]

Options

-c|--crlf
convert line endings to CRLF; default: LF (unix)
-e|--encoding=X
convert to encoding X
-H|--Help
print full documentation via less and exit
-h|--help
print short help and exit
-v|--verbose
be [not] verbose (quiet is the default)
-V|--version
print version and exit

Description

fixfile converts the given files in place, as follows:

If no file is given, converts standard input to standard output. If any of the input files can not be converted for any reason, none of the files are converted and the script quits with exit value 1.

Bugs

This script needs the utf82html executable. Sources for it are available here.

Author

Wybo Dekker

Copyright

Released under the GNU General Public License

Functions used:


handle_options

synopsis:
handle_options "$@"
description:
handle the options.
globals used:
Myname Version
globals  set:
args