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