示例资源列表
如url.txt:http://su.bdimg.com/static/superplus/img/logo_white_ee663702.pnghttp://su.bdimg.com/static/superplus/img
要得到正在执行的程序/脚本自身所存放的绝对路径,在 PHP 里面可以用 dirname(realpath(__FILE__)) ; C# 则有 System.Windows.Forms.Application.StartupPath ; j
例如你有一个文件夹路径是 /wls,如果想要遍历这个文件夹内的所有文件,并将它们保存到数组中,利用shell你可以这样做for file in /wls/*
doif test -f $filethenarr=(${arr[*]} $fil