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.
 
 
BubbyRoosh a00b6b1fe0 tfw free(fp) 3 weeks ago
.gitignore makefile/readme 3 weeks ago
LICENSE arg parsing + better cat/roomba 3 weeks ago
Makefile arg parsing + better cat/roomba 3 weeks ago
README.md readme 3 weeks ago
argp.h arg parsing + better cat/roomba 3 weeks ago
cat.c tfw free(fp) 3 weeks ago

README.md

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.