Skip to content

Instantly share code, notes, and snippets.

@dewomser
Last active February 16, 2026 16:44
Show Gist options
  • Select an option

  • Save dewomser/736b0ea045905c5923b5a5daa05a6f98 to your computer and use it in GitHub Desktop.

Select an option

Save dewomser/736b0ea045905c5923b5a5daa05a6f98 to your computer and use it in GitHub Desktop.
cat2miau Bash enhencement for reading in Textfile with cat

Der CAT-Ersatz zum lesen von Textdateien ist MIAU !

Diese Funktion => .bashrc

miau() {
  printf '%s' "$(<"$1")"
}

in das Script

echo "lolo" > test.txt
echo "bibi und $(miau "test.txt") are dancers"

ist Ersatz für:

echo "bibi und $(cat "test.txt") are dancers"

Ist Ersatz für:

Kleinerzeichen ist kein Buchstaben und sieht auch scheiße aus.

echo "bibi und $(< "test.txt") are dancers"

@dewomser
Copy link
Author

Bildschirmfoto_20260216_142526

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment