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.
![]() |
2 years ago | |
---|---|---|
.gitignore | 2 years ago | |
LICENSE | 2 years ago | |
Makefile | 2 years ago | |
README.md | 2 years ago | |
argp.h | 2 years ago | |
cat.c | 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.