You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

461 B

catcat

ctct

Cat cat :D

Simple cat implementation with -n and -s options.. as an ascii cat :D

Usage

ctct [-ns] [file ...]

Options

  • -n Number each line, starting at 1.
  • -s Squeeze empty lines in a row.
this





input

becomes

this

input

Example

ctct /etc/passwd - ~/.profile

prints the contents of /etc/passwd, then prints stdin until an EOF is sent (on a tty this is typically ctrl+d), then prints ~/.profile.