Re: how to do repetetive command in shell

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Roland RoLaNd wrote:
>
> i'm writing a certain script which does a specific task in a repetitive
> manner, i'm going to give a similar script with the same concept hope you
> could advise me to a better way:
>
> USER1="roland"
> USER2="dany"
> USER3="kevin"
>
> cp -r /opt/$USER1/test /backup/$USER1
> cp -r /opt/$USER2/test /backup/$USER2
<snip>
Guy, if you're a real sysadmin, and not just doing this at home, you
*really* need to take a basic programming course. The first week or two
would have told you about what are called "control structures".

        mark

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux