有没有一种方法可以批量指定多行字符串,类似于unix shell中的heredoc.类似的东西:
cat <<EOF > out.txt bla bla .. EOF
我们的想法是从模板文件创建自定义文件.
templates batch-file heredoc
batch-file ×1
heredoc ×1
templates ×1