作业lftp

1 #!/bin/bash
  2 #date: 2010-12-24 12:12:54
  3 cd /tmp
  4 lftpget  ftp://192.168.0.254/pub/gls/centos.repo
  5 [ -e centos.repo ] && grep "^baseurl=  http://mirrors.163.com" centos.repo | sed -i

"s/baseurl=http:\/\/mirrors.163.com\/cen    tos\/*/baseurl=http:\/

\/mirrors.souhu.com\/centos/g" centos.repo && mv centos.repo /etc/repos.d && cd /etc  yum
 

你可能感兴趣的:(职场,.,休闲)