2017-06-02 28 views

回答

1

在bash用的结构

for file in ZLOG_*.zip; do 
    [[ -e $file ]] || continue # check file exist 
    id=${file#ZLOG_} # remove prefix 
    id=${id%%_*}  # remove suffix 
    if ((id>106171)); then 
     echo "$file" 
    fi 
done >list.txt 
+0

谢谢..让我试试吧。 – sailesh

相关问题