1.search string in folder
grep -r string ./
2.将ubuntu终端输出保存为日志
2>&1 | tee /path/name.log
3.从log文件中查找迭代次数和损失并记录为文件
grep Iteration mnist.log | grep loss | awk '{print $6 $9}' | sed 's/\,//' > loss.data
1.search string in folder
grep -r string ./
2.将ubuntu终端输出保存为日志
2>&1 | tee /path/name.log
3.从log文件中查找迭代次数和损失并记录为文件
grep Iteration mnist.log | grep loss | awk '{print $6 $9}' | sed 's/\,//' > loss.data