Skip to content

Commit

Permalink
embed cmd for show code and show-save into Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
Weilei Zeng at qlab01 committed Sep 22, 2023
1 parent a6bf2f4 commit 8219273
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions log/Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
clean:
mv generate*.log trash
# mv generate*.log generate*.err trash
show-codes:
bash show-codes.sh
mv nkd*.log trash
#show-codes:
#echo "this display the last lines in log file, and one can check number of codes saved in each run."
#for i in nkd*; do tail -n 3 $i |head -n 1; done
show-save:
# echo "how many codes has been saved this time:"
bash show-save.sh
echo "this count the lines with 'save', which is the same as number of codes saved during this trial"
grep Saved *.log | wc -l
print-codes:
grep Saved *.log
show-save-log:
bash show-save.sh >>clean-log.txt
date >> clean-log.txt

0 comments on commit 8219273

Please sign in to comment.