linux下打印井号和感叹号时使用单引号而不是双引号
错误示例和对应的报错:
printf "#!/bin/bash \n #PBS -N step7-rsem-calculate-expression1 \n"
!/bin/bash: event not found
正确示例:
printf '#!/bin/bash \n#PBS -N step7-rsem-calculate-expression1 \n'
#!/bin/bash
#PBS -N step7-rsem-calculate-expression1
本文来自博客园,作者:橙子牛奶糖(陈文燕),转载请注明原文链接:https://www.cnblogs.com/chenwenyan/p/15032220.html