Guest User

Untitled

a guest
Aug 16th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. command | tee >(grep rerun)
  2. command | grep rerun
  3.  
  4. while pdflatex paper.tex | grep -E "rerun LaTeX|run Biber"; do
  5. biber paper
  6. done
  7.  
  8. command | tee outfile | grep rerun
  9.  
  10. while pdflatex paper.tex | tee outfile | grep -E "rerun LaTeX|run Biber"; do
  11.  
  12. RERUN=1
  13. while [[ $RERUN == 1 ]] ; do
  14. biber paper
  15. ! pdflatex paper.tex | tee output.txt && grep -E -q "rerun LaTeX|run Biber" output.txt
  16. RERUN=$?
  17. done
  18.  
  19. Normally the exit status is 0 if a line is selected, 1 if no lines were
  20. selected, and 2 if an error occurred. However, if the -q or --quiet or
  21. --silent is used and a line is selected, the exit status is 0 even if
  22. an error occurred.
Add Comment
Please, Sign In to add comment