[nflug] ubuntu sudo script

joshj at linuxmail.org joshj at linuxmail.org
Thu Jun 21 10:12:14 EDT 2007


for i in `find -name *wine*`; do sudo rm -f $i; done

Thus spake anthonyriga:

> How do you run script commands in bash shell using
> sudo?
> I was trying to delete some wine files and I get this
> error here is the command:
>
> sudo for i in `find -name *wine*`; do rm -f $i; done
> bash: syntax error near unexpected token `do
>
> If I take out sudo I get permission denied. How do you
> run scripts overiding sudo? I like the security aspect
> of sudo but sometimes it gets to be a pain. Suggestions?
>
>
>
>
> ____________________________________________________________________________________
> Need Mail bonding?
> Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users.
> http://answers.yahoo.com/dir/?link=list&sid=396546091
> _______________________________________________
> nflug mailing list
> nflug at nflug.org
> http://www.nflug.org/mailman/listinfo/nflug
>


More information about the nflug mailing list