rcscripts.ksh

来自「Solaris环境下Shell编程编程」· KSH 代码 · 共 30 行

KSH
30
字号
#!/bin/ksh # Purpose: This script will list all the start scripts in the /etc/rc3.d#          directory. Additionally it will report the inode number for each#          script, and then list all files under /etc with the same inode #          number.## Scriptname: rcscripts.kshif [ $# -ne 0 ]; then	echo "Usage: rcscripts.ksh "	exit 1fifor sscript in /etc/rc3.d/S*do	print "The script name is $sscript"	print -n "The inode number is "	inode=`ls -i $sscript | nawk '{print $1}'`	print "$inode \n"	print "The other files under /etc with the same inode number are: "	find /etc -inum $inode    	print "\n\n"doneecho "Finished"

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?