当前位置:网站首页>The SH runtime directly reported an error syntax error near unexpected token ` $'. \r‘
The SH runtime directly reported an error syntax error near unexpected token ` $'. \r‘
2022-06-25 20:56:00 【Gem, Chaochao】
After writing the script with a text editor , Upload to Linux,sh An error is reported directly during operation syntax error near unexpected token `$’\r’
Two solutions
The first one is
First step vim -b XXX.sh
You can see that there are more at the end of each line “”“^M” This thing
The second step sed -i ‘s/\r//g’ XXX.sh
It's settled.
The second kind
stay notepad++ in , edit -> Document format conversion -> convert to unix Format , That's all right. .

边栏推荐
- Analysis and cleaning of kdevtmpfsi virus content
- Attention to government and enterprise users! The worm prometei is spreading horizontally against the local area network
- [golang] leetcode intermediate - the kth largest element in the array &
- Sonar series: continuous scanning through Jenkins integrated sonarqube (IV)
- Share several Threat Intelligence platforms
- HMS core actively explores the function based on hardware ear return, helping to reduce the overall singing delay rate of the singing bar by 60%
- Tencent music knowledge map search practice
- Popular understanding of deviation and variance in machine learning
- TypeError: __ init__ () takes 1 positional argument but 5 were given
- Introduction to interface test, interface protocol and common interface test tools
猜你喜欢

Must see the summary! In depth learning era, you should read 10 articles to understand image classification!
This is a simple and cool way to make large screen chart linkage. Smartbi will teach you
Cloud development practice of the small program for brushing questions in the postgraduate entrance examination - page design and production (home page of the question bank, ranking page, my)

Openocd adds third-party device support: ht32f52352 Cortex-M0+
A new paradigm for large model application: unified feature representation optimization (UFO)

Log4j2 vulnerability detection tool list

Decryption of APP parameters of a cross-border export e-commerce - dunhuang.com
![[opencv] opencv from introduction to mastery -- detailed explanation of input and output XML and yaml files](/img/88/75c4caacef30e0621106a4e3462367.jpg)
[opencv] opencv from introduction to mastery -- detailed explanation of input and output XML and yaml files
New generation engineers teach you how to play with alluxio + ml (Part 2)

Lantern Festival, learning at the right time! Novice training camp attacks again, learning buff continues to fill up
随机推荐
Get the root directory of the package at compile time from buildreoot
Yolov4 reading notes (with mind map)! YOLOv4: Optimal Speed and Accuracy of Object Detection
Unable to connect to the server remotely locally using the Jupiter notebook
Why doesn't anyone read your hard-working blog? Do you really understand the skills of framing, typesetting and drawing?
Is it safe for qiniu school to open a securities account?
[golang] leetcode intermediate - the kth largest element in the array &
Jingxi Pinpin wechat applet -signstr parameter encryption
How to buy the millions of medical insurance for children? How much is it a year? Which product is the best?
Decryption of APP parameters of a cross-border export e-commerce - dunhuang.com
1.1-mq visual client preliminary practice
Solution to big noise of OBS screen recording software
Global netizens Yuanxiao created a picture of appreciating the moon together to experience the creativity of Baidu Wenxin big model aigc
New generation engineers teach you how to play with alluxio + ml (Part 2)
Server pressure troubleshooting top
Getting started and using postman
What is machine learning? (Fundamentals)
2022年启牛学堂证券开户安全嘛?
同花顺炒股软件开户是合法的吗?安全吗
A new paradigm for large model application: unified feature representation optimization (UFO)
Several methods of obtaining function annotation text on pycharm