NAME

CTK::Command - Utilities to extend common UNIX commands

VERSION

Version 1.03

SYNOPSIS

    perl -MCTK::Command -e crlf -- build/conf
    perl -MCTK::Command -e fsplit -- 3 src "file.txt" dst "[FILE].[PART]"
    perl -MCTK::Command -e fjoin -- src "file.*" dst join.txt

DESCRIPTION

Utilities to extend common UNIX commands

The module is used to extend common UNIX commands. In all cases the functions work from @ARGV rather than taking arguments. This makes them easier to deal with in Makefiles. Call them like this:

    perl -MCTK::Command -e some_command -- some files to work on

All filenames with * and ? will be glob expanded

FUNCTIONS

Shared functions

crlf

    perl -MCTK::Command -e crlf -- build/conf

Converts DOS and OS/2 linefeeds to Unix style recursively.

Original see in package "dos2unix" in ExtUtils::Command

fsplit

    perl -MCTK::Command -e fsplit -- 3 src "file.txt" dst "[FILE].[PART]"

Split file to parts

Arguments (in order):

lines

How many lines

dirsrc

Source direcoty

file

File name or glob-mask

dirdst

Destination directory for parted files

format

Format

See "fsplit" in CTK::Plugin::File

fjoin

perl -MCTK::Command -e fjoin -- src "file.*" dst join.txt

Joins files to one big file

Arguments (in order):

dirsrc

Source direcoty

mask

File names as glob-mask

dirdst

Destination directory for result file

fileout

Name of output file

See "fjoin" in CTK::Plugin::File

HISTORY

See CHANGES file

DEPENDENCIES

CTK

TO DO

See TODO file

BUGS

* none noted

SEE ALSO

CTK, CTK::Plugin::File

AUTHOR

Serż Minus (Sergey Lepenkov) http://www.serzik.com <abalama@cpan.org>

COPYRIGHT

Copyright (C) 1998-2019 D&D Corporation. All Rights Reserved

LICENSE

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

See LICENSE file and https://dev.perl.org/licenses