Skip to content

CatMeowByte/catsay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

CATSAY

| Meow, Cat! |
 \
  |\_/|
  =^.^=
   |||\)

catsay is a cowsay alternative written in POSIX-compliant shell script. It displays messages in a speech bubble with an ASCII cat.

Installation

  1. Make the script executable:

    chmod +x catsay
  2. Copy it to any directory in your PATH. The recommended location is ~/.local/bin:

    cp catsay ~/.local/bin/
  3. Ensure the directory is in your PATH. If not, add the following to your shell configuration file:

    export PATH="$HOME/.local/bin:$PATH"

Usage

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

Features

  • 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.

About

A cowsay alternative written in POSIX-compliant shell script with ASCII cat

Topics

Resources

Stars

Watchers

Forks

Languages