Need a script that will look at a text file. Read each line and replace any mention of the word 'bread' with 'butter'.
The 'butter' has to be a command line argument.
Having no success at all. This is a PERL script by the way :)
Thxs
Was thinking something like this....but I'm NO script guy at all and this doesn't work:
#!/bin/bash
# test to see if acme.conf exists
i=0
if [ -e "/etc/acme.conf" ];
then
echo "you have a conf file already. I'm gonna back it up."
mv "/etc/acme.conf" "/etc/acme.conf"+ i
i=0+1
else...
OK sorry....
forget everything I put above.
What I need is a simple loop that looks for a file name acme.conf under /etc
When it finds it I just want it to append a number say acme.conf.1
If it's run again it should copy the file again and call it acme.conf.2
If it doesn't find it the...
Hi All,
I'm writing an expect script for an installation of some software on a Linux box. Where I'm getting stuck is in the beginning when I'm looking for the presence of a file. If it's there I want to rename it to acme.conf.1, so that when the software installs it can touch acme.conf.
Hope...
OK...great answers guys. Well here is another problem of mine. Is there any utility out there that will help the migration of over 500 users to exchange? I just can't see myself having to go to each PC, open Outlook, click new mail account, add an exchange account and so on...and so on.....
-rod
So we have just implemented a new 2003 Exchange Server in the office.
We were running SENDMAIL before. Terrible. Anyhow, my boss has just
come to me and asked if I could create a GPO which we could then
propogate to all of our end users. This GPO would need to change the
path of there...
I have a user who works on a laptop at the office. He need to be able to work on his files located within his personal network share, so I have offline folders enabled and I have them synchronizing on logon and logoff. The problem is....sometimes for whatever reason....the personal folder (which...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.