1.hash脚本
文件名:assign

内 容:
#!/bin/sh

cd $1
ls

执行:
[root@db2 ~]# sh helle2.sh /usr
或者[root@db2 ~]#./helle2.sh /usr

输出结果:
bin etc games include lib lib64 libexec local sbin share src tmp


2.perl脚本

首先要安装perl:yum install perl
文件名:hello.pl
内容:
#!/usr/bin/perl
print"Hello World"

执行:[root@db2 ~]# perl hello.pl
或者[root@db2 ~]# ./hello.pl
输出:Hello World

相关文章:http://blog.csdn.net/zzq900503/article/details/12850379

 

 

相关文章:

  • 2021-11-13
  • 2021-11-23
  • 2022-03-01
  • 2021-11-13
  • 2022-12-23
  • 2021-11-23
猜你喜欢
  • 2021-12-28
  • 2021-06-11
  • 2021-10-18
  • 2021-11-13
相关资源
相似解决方案