summary refs log tree commit diff
path: root/commands/cat
diff options
context:
space:
mode:
authornoa2024-01-03 10:57:01 +0000
committernoa2024-01-03 10:57:01 +0000
commit2693f666acd19022aedacf5a184cfabcd834cbc3 (patch)
tree7ee8f2fb7a420cb6bb96c2e37d667442e49f8d44 /commands/cat
parentbf0cf3862464b741fac3044c7898c1aeb9e9cd62 (diff)
Add cat command
The cat command interleaves its arguments with cats.
Diffstat (limited to 'commands/cat')
-rwxr-xr-xcommands/cat10
1 files changed, 10 insertions, 0 deletions
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"