摘要:
1.通配符 string='My long string' if [[ $string == *"My long"* ]]; then echo "It's there!" fi 2.正则匹配 string='My long string' if [[ $string =~ .*My.* ]]; t 阅读全文
摘要:
#!/usr/bin/perl my $indir = $ARGV[0]; &find_fileindir("$indir"); sub find_fileindir(){ local($dir) = @_; opendir(DIR,"$dir"|| die "can't open this $dir"); local @files =readdir(DIR); closedir... 阅读全文