天天看点

自动到ftp下载并替换文件内容

3、安装一个软件pidgin

   1 #!/bin/bash

  2 #Author:

  3 #Date && Time:2010-12-21 21:14:31

  4 #Description

  5 #Version: 0.01

  6 cd /tmp

  8 if [ -e centos.repo ];then

  9 grep "^baseurl" /tmp/centos.repo | sed -i 's/163/sohu/g' /tmp/centos.repo

 10 mv /tmp/centos.repo /etc/respos.d

 11 yum install pidgin

 12 fi

 13 exit 5

本文转自 张玉坡 51CTO博客,原文链接:http://blog.51cto.com/fighter/466328

继续阅读