Morning,<br>I would like a simple bash script to check if a list of user directories exist and if they do delete them. If they don't output a message and skip to next folder to check. E.g.<br><br>Does /Home/user1 exist > Yes > Delete /home/user1 goto next check<br>
No > "user1 not found" go to next check<br>Does /Home/user2 exist > Yes > Delete home/user2 goto next check<br> No > "user2 not found" go to next check<br>
end.<br><br>Any ideas how I can do this?<br><br>Cheers,<br><br>Nathan.<br><br>