| Meow, Cat! |
\
|\_/|
=^.^=
|||\)
catsay
is a cowsay
alternative written in POSIX-compliant shell script. It displays messages in a speech bubble with an ASCII cat.
-
Make the script executable:
chmod +x catsay
-
Copy it to any directory in your
PATH
. The recommended location is~/.local/bin
:cp catsay ~/.local/bin/
-
Ensure the directory is in your
PATH
. If not, add the following to your shell configuration file:export PATH="$HOME/.local/bin:$PATH"
With arguments:
catsay hello world
With piped input:
echo "hello world" | catsay
Multiline input:
printf "line one\nline two\nline three" | catsay
With fortune:
fortune | catsay
Empty input displays default message:
catsay
- POSIX-compliant shell script
- Handles multiline text
- Auto-adjusts box width to longest line
- Works with piped input or arguments
- Pure ASCII art (maximum compatibility)
This project is licensed under WTFPL.
This project follows the HGG.