Hi, I’m trying to figure out why tred won’t output to my file (using Windows). I’m not sure if this is a problem with tred or if I just don’t understand Powershell, but based on what I’m reading I should be able to simply output stdin with >
In Powershell,
dot -Tsvg file.dot -o file.svg
Works fine and creates a nice pretty svg output, and
tred file.dot
Outputs with nice reformatting to Powershell via stdin without complaint as well, however,
tred file.dot > file_tred.dot
Also runs, but then,
dot -Tsvg file_tred.dot -o file.svg
Gives me the following error,
Error: file_tred.dot: syntax error in line 1 near ’ ■d’
Are there some sort of junk characters I need to discard before piping tred to a file, or is something else going on? I tried to run tred with -Tdot and/or -o like dot, but it doesn’t seem to like anything other than the flags to print to stderr.
If anyone can explain to me what I’m doing wrong I’d appreciate it.
Thanks for the reply. I’m not sure why it’s in there since the file shows up as UTF-8 without BOM in N++, but for now my workaround is just to delete the file, recreate it, run tred without piping the output, copy/paste the output from Powershell, then run the second command. Still gets the job done.