shell
白熊188
这个作者很懒,什么都没留下…
展开
-
【Solved】shell脚本执行错误 $’\r’:command not found
shell脚本执行错误 $’\r’:command not found存现这种错误是因为 编写的 shell脚本是在win下编写的,每行结尾是\r\n 的Unix 结果行是\n所以在Linux下运行脚本 会任务\r 是一个字符,所以运行错误,需要把文件转换下,运行 :dos2unix 脚本名原文链接: https://blog.csdn.net/liuxiangke0210/article/details/80395707...原创 2020-05-20 19:55:11 · 116 阅读 · 0 评论 -
【Solved】syntax error near unexpected token done
syntax error near unexpected token `done’运行脚本文件出现syntax error near unexpected token `done’的问题 搜索发现很多答案给出的都是win 和linux 编码解码问题如果是编码问题用方案1解决 :脚本如下:#!/bin/bash#riqizizengdatebeg=$1dateend=KaTeX parse error: Expected 'EOF', got '#' at position 3: 2#̲re原创 2020-05-08 20:44:03 · 7949 阅读 · 0 评论