shell_Day01】的更多相关文章

1.判断/etc/inittab文件是否大于100行,如果大于,则显示"/etc/inittab is a big file."否者显示"/etc/inittab is a small file." #!/bin/bash if [ `wc -l /etc/inittab | awk '{print $1}'` -gt 100 ] ;then echo "/etc/inittab is a big file." else echo "/…