# This is a comment
Hello World
# Another comment
This will be printed
如果运行`echocat example.txt`,脚本将执行以下操作:
- 读取第一行`# This is a comment`,因为以`#`开头,所以直接打印出来。
- 读取第二行`Hello World`,不以`#`开头,所以`eval`执行`echo "Hello World"`,打印`Hello World`。
- 读取第三行`# Another comment`,同样以`#`开头,打印出来。
- 读取第四行`This will be printed`,不以`#`开头,执行`echo "This will be printed"`,打印出来。
最终输出将是:
# This is a comment
# Another comment
Hello World
This will be printed