标签:suse eth red download case语句 config system -name nginx
case $INPUT in Pattern1) 语句1 ;; Pattern2) 语句2 ;; esac
case $1 in 1) wget -c http://nginx.org/download/nginx-1.16.0.tar.gz ;; esac
select i in redhat centos ubuntu suse(菜单名) do echo $idone
#!/bin/bash PS3="What you like most of the open source system? " select i in redhat centos ubuntu suse do echo "Your Select OS is " $i done
#!/bin/bash PS3="What you like most of the open source system? " select i in redhat centos ubuntu suse do case $i in redhat) echo "redhat linux" ;; centos) echo "centos linux" ;; ubuntu) echo "ubuntu linux";; suse) echo "suse linux" ;; *) exit esac done
find(工具) path(路径) -option(参数) -action(动作); find path -option [ -print ] [ -exec -ok command ]
find / -name eth0find / -name ifcfg-eth0 find / -name "*eth0" find /etc/ -name "*eth0" find /etc/sysconfig/network-scripts/ -name "*eth0"
find / -name auto_mysql_backup.sh find / -name *mysql_backup*.sh
find / -name "*.rpm" find / -name "mariadb*rpm" find / -name "*.rpm" -a -name "mariadb*" find / -name "*.rpm" -name "mariadb*" ! -name "mariadb-libs*" find / -name "*.rpm" -a -name "mariadb*" -a ! -name "mariadb-libs*
for soft in `find / -name "*.rpm" -name "mariadb*" ! -name "mariadb-libs*"`;do cp $soft /tmp/;done cp `find / -name "*.rpm" -name "mariadb*" ! -name "mariadb-libs*"` /tmp/ \cp $(find / -name "*.rpm" -name "mariadb*" ! -name "mariadb-libs*") /tmp/ find / -name "*.rpm" -name "mariadb*" ! -name "mariadb-libs*" -exec cp {} /tmp/ \; find / -name "*.rpm" -name "mariadb*" ! -name "mariadb-libs*"|xargs -I {}cp {} /tmp/
标签:suse eth red download case语句 config system -name nginx
原文地址:https://www.cnblogs.com/nsh123/p/12157392.html