To solve the
tp2.dot: ASCII text, with CRLF line terminators
convert the file from Windows CRLF format to Unix LF format with
$ d2u tp2.dot
about the output in a specific file you need to use
$ dot -Tpng tp2.dot > tp2.png
or
$ dot -Tpng tp2.dot -O
the second case will add the .png
to the source file name
$ ls -l tp2*
-rw-r--r-- 1 Marco Kein 159 Jan 22 15:08 tp2.dot
-rw-r--r-- 1 Marco Kein 1.4K Jan 22 15:13 tp2.dot.png
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…