1.hash腳本
文件名:assign .net
內 容:
#!/bin/shblog
cd $1
lshash
執行:
[root@db2 ~]# sh helle2.sh /usr
或者[root@db2 ~]#./helle2.sh /usrperl
輸出結果:
bin etc games include lib lib64 libexec local sbin share src tmpyum
2.perl腳本腳本
首先要安裝perl:yum install perl
文件名:hello.pl
內容:
#!/usr/bin/perl
print"Hello World"db
執行:[root@db2 ~]# perl hello.pl
或者[root@db2 ~]# ./hello.pl
輸出:Hello World文件
相關文章:http://blog.csdn.net/zzq900503/article/details/12850379game