I want to open a gif file using linux command.The file's name is "Simulation of electrical activity in the heart during fibrillation (with comparison with experiment).gif".
I use the following command:
$display <Simulation of electrical activity in the heart during fibrillation\(\with comparison with experiment\)\.gif>
It gives me
-bash: syntax error near unexpected token `newline'
What's wrong with it? Thank you!
The reason
display <filename>
gives you a syntax error near unexpected token newline
is that the arrow brackets in whatever documentation you were following were not intended to be taken literally.
A <
indicates that the thing that follows is a filename to be used as input on stdin, and a >
indicates that the thing that follows is a filename to be used for output on stdout; thus, a >
at the very end of your command is a syntax error, because it expects a file name to follow, not a newline.
Rather, use:
display filename
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.