It's for user folders on a mac. So the path is actually /Users/username<br><br><div class="gmail_quote">On Fri, Jul 16, 2010 at 12:18 PM, Stuart Brand <span dir="ltr"><<a href="mailto:stuart@stuartbrand.co.uk">stuart@stuartbrand.co.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">What do you want this for? Be careful if you're dealing Cyrus mailbox folders...<br>
<div><div></div><div class="h5"><br>
"Nathan Friend" <<a href="mailto:nathan.friend@gmail.com">nathan.friend@gmail.com</a>> wrote:<br>
<br>
>Morning,<br>
>I would like a simple bash script to check if a list of user directories<br>
>exist and if they do delete them. If they don't output a message and skip<br>
>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<br>
>check<br>
>Does /Home/user2 exist > Yes > Delete home/user2 goto next check<br>
> No > "user2 not found" go to next<br>
>check<br>
>end.<br>
><br>
>Any ideas how I can do this?<br>
><br>
>Cheers,<br>
><br>
>Nathan.<br>
</div></div><div class="im">>_______________________________________________<br>
>Kent mailing list<br>
><a href="mailto:Kent@mailman.lug.org.uk">Kent@mailman.lug.org.uk</a><br>
><a href="https://mailman.lug.org.uk/mailman/listinfo/kent" target="_blank">https://mailman.lug.org.uk/mailman/listinfo/kent</a><br>
</div><font color="#888888">--<br>
Sent from my Android phone with K-9 Mail. Please excuse my brevity.<br>
</font><div><div></div><div class="h5"><br>
_______________________________________________<br>
Kent mailing list<br>
<a href="mailto:Kent@mailman.lug.org.uk">Kent@mailman.lug.org.uk</a><br>
<a href="https://mailman.lug.org.uk/mailman/listinfo/kent" target="_blank">https://mailman.lug.org.uk/mailman/listinfo/kent</a><br>
</div></div></blockquote></div><br>