Created
December 28, 2015 06:24
-
-
Save harshadyeola/f03f2f6b2c4de5a25687 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for i in `cat /tmp/1.txt`; do | |
read -p "Do you realy want to delete $i [y/n]" useri | |
if [ "$useri" != "y" ]; then | |
echo "Not deleting $i" | |
exit | |
fi | |
rm -rf $i | |
ln -s /var/www/rtcamp.com/htdocs/wp-content/uploads/$i $i | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment