Skip to content

Instantly share code, notes, and snippets.

@hmarr
Created February 11, 2014 11:46
Show Gist options
  • Save hmarr/8933418 to your computer and use it in GitHub Desktop.
Save hmarr/8933418 to your computer and use it in GitHub Desktop.
#!/bin/bash
echo -n "catsh% "
while read line; do
if [[ "$line" == ":exit" ]]; then
exit
fi
sh -c "cat $line"
echo -n "catsh% "
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment