2012-12-19 37 views

回答

2
curTime=$(ls -l | awk -v line=$curLineNumber 'NR == line { print $NF }' 

-v選項用於指定在命令行上初始化的變量。我爲awk變量選擇了名稱line