awk 计算文件中每行的值

awk 'BEGIN {count=0} {count+=$0;} END {"date +/"%Y-%m-%d %H:%M:%S/"" | getline date ; print date,"Total Register User:",count}'  $tmp_file_name

你可能感兴趣的:(bash,shell,date,file,user)