From 2693f666acd19022aedacf5a184cfabcd834cbc3 Mon Sep 17 00:00:00 2001 From: noa Date: Wed, 3 Jan 2024 10:57:01 +0000 Subject: Add cat command The cat command interleaves its arguments with cats. --- commands/cat | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 commands/cat diff --git a/commands/cat b/commands/cat new file mode 100755 index 0000000..a664bbb --- /dev/null +++ b/commands/cat @@ -0,0 +1,10 @@ +#!/bin/sh + +set -- $1 + +printf "𓃠 " +for word in "$@"; do + printf "$word" + printf " 𓃠 " +done +printf "\n" -- cgit 1.4.1-2-gfad0