Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

license (3-clause bsd)
github ci

dcat: concatenate file(s) to standard output

a cat command-line implemenation in dart, inspired by the write command-line apps sample code.

command-line usage

dcat --help
usage: dcat [option]... [file]...
concatenate file(s) to standard output.

with no file, or when file is -, read standard input.

  -b, --number-nonblank    number nonempty output lines, overrides -n
  -e, --show-ends          display $ at end of each line
  -h, --help               display this help and exit
  -n, --number             number all output lines
  -t, --show-tabs          display tab characters as ^i
  -s, --squeeze-blank      suppress repeated empty output lines
      --version            output version information and exit

examples:
  dcat f - g  output f's contents, then standard input, then g's contents.
  dcat        copy standard input to standard output.

compile application

*nix

dart compile exe -o bin/dcat bin/dcat.dart

windows

dart compile exe bin/dcat.dart

differences from gnu cat

  • no binary file support.
  • line numbers are printed as x: where x is the line number.

Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

Top