1 2 3 4 5 6 7 8 9
#!/bin/bash filename=$(mktemp) read -p "type your stuff here: " echo $REPLY > $filename echo -e "The contents of $filename are as follows:\n" cat $filename echo -e "\n\nDeleting $filename now" rm -f $filename