Mercurial > repo
view paste/paste.12709 @ 11253:8ccdc498f164
<b_jonas> slashlearn greater//A greater than sign instructs the shell to send the output of the command to a file. Not very mnemonic, but a grater is the closest thing to a file that ASCII has.
author | HackBot |
---|---|
date | Wed, 06 Dec 2017 09:52:00 +0000 |
parents | e037173e0012 |
children |
line wrap: on
line source
#!/bin/sh topic=$(echo "$1" | tr A-Z a-z) [ -e "wisdom/$topic" ] || { echo "$1? ¯\(°_o)/¯"; exit 1; } cat "wisdom/$topic"