#!/usr/bin/perl -w use strict; die "Usage: $0 <file>\n" unless (@ARGV == 1); my $lines = 0; my $bases = 0; while (my $line = <>){ # <> operator reads one line at a time from the file specified by $ARGV[0]. chomp $line; next if
ls命名 man ls -R 递归列出全部的目录内容 recusive -a 列出所有的文件(包括以 . 开头的隐藏文件) all -r 逆序排列 reverse -t 按照时间信息排序 time -S 按照文件大小,大的在前面 文件按照从大到小排序 ls -S 从小到大 ls -Sr Linux统计文件夹内的文件夹个数: ls -l | grep "^-d" | wc -l ls -l 是以行的形式展现文件夹内所有内容 grep "^-d" grep是过滤ls