|
兄弟们给注解一下,谢谢了 :thank
cd /www/
ls **/index.html
pwd
for file in *; do if ! [ -f $file/index.html ] then echo $file; fi; done
for file in *; do if ! [ -f $file/index.html ] then echo $file; endif; done
for file in *; do if ! [ -f $file/index.html ] then echo $file; endif; done
for file in *; do if ! [ -f $file/index.html ]; then echo $file; endif; done
for file in *; do if ! [ -f $file/index.html ]; then echo $file; endif; endif; endif;
for file in *; do if ! [ -f $file/index.html ]; then echo $file; else echo "Okay"; done
for file in *; do if ! [ -f $file/index.html ]; then echo $file; else echo "Okay"; endif; done
for file in *; do if ! [ -f $file/index.html ] then; do echo $file; else echo "Okay"; endif; done
for file in *; do if ! [ -f $file/index.html ] then; echo $file; else echo "Okay"; endif; done
for file in *; do if ! [ -f $file/index.html ] then; echo $file; endif; done
for file in *; do if ! [ -f $file/index.html ] echo $file; endif; done
for file in *; do if ! [ -f $file/index.html ] then echo $file; endif; done
ls * | perl -anle 'print $F[1] if (!-f $f[1]."/index.html")'
ls * | perl -anle 'print $F[1] if (!-f $F[1]."/index.html")'
ls | perl -anle 'print $F[1] if (!-f $F[1]."/index.html")'
ls | perl -nle 'print if (!-f $_."/index.html")'
perl -e '($domain) = ("http://who.knows.what.thefuck.co.uk/blah/baskdkasd/hblah.html" =~ m|https?://([a-zA-Z0-9\.\-\_]+).*|); print $domain,"\n"'
ls nailb.com/
perl -e '($domain) = ("http://who.knows.what.thefuck.co.uk" =~ m|https?://([a-zA-Z0-9\.\-\_]+).*|); print $domain,"\n"'
perl -e '($domain) = ("http://asdf.com/asdf/is/a/cool/site/../../../../../../../setup.exe" =~ m|https?://([a-zA-Z0-9\.\-\_]+).*|); print $domain,"\n"'
ls | perl -nle 'print if ((!-f $_."/index.html") && (!-f $_."/index.htm") && (!-f $_."/index.php"))'
ls | perl -nle 'print if ((!-f $_."/index.html") && (!-f $_."/index.htm") && (!-f $_."/index.php"))' | grep -E 'com$|biz$|net$
:help |
|