Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/bin/bash
read -p "Delete all files and dirs in ~/trash/* ? " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]
then
rm -rf /home/hnr/trash/*
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.