当前位置:网站首页>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. .
边栏推荐
- Is it safe for qiniu school to open a securities account?
- Tencent music knowledge map search practice
- 1.1-mq visual client preliminary practice
- Feature Engineering in simple terms – a practice guide based on openmldb (Part 1)
- Vbpr (visual Bayesian personalized ranking) paper summary
- What is an app circle of friends advertisement
- Online yaml to XML tool
- Log4j2 vulnerability battle case
- Reasons for network timeout app flash back
- ZK implementation of distributed global counter for cursor application scenario analysis
猜你喜欢
2022 "gold, silver and four" is a must for job hopping. You must know 100 questions in 2022 intermediate and advanced Android interview to realize your big factory dream
Sonar series: continuous scanning through Jenkins integrated sonarqube (IV)
Compile 6relayd using the cross compiler
A new paradigm for large model application: unified feature representation optimization (UFO)
Great changes in the interaction between people and the digital world
Yunzhisheng atlas supercomputing platform: computing acceleration practice based on fluid + alluxio (Part I)
CSDN sign in cash reward
Cloud native 04: use envoy + open policy agent as the pre agent
Insert and update each database
R language momentum and Markowitz portfolio model implementation
随机推荐
2022 oceanbase technical essay contest officially opened | come and release your force
Live broadcast preview | front line experts invite you to talk: the value of data science enabling multiple application scenarios
Is it safe for qiniu school to open a securities account?
Section 13: simplify your code with Lombok
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)
Shell scripts: Variables
New generation engineers teach you how to play with alluxio + ml (Part 2)
Understand the offline mixing technology in the industry
A new paradigm for large model application: unified feature representation optimization (UFO)
Decryption of APP parameters of a cross-border export e-commerce - dunhuang.com
Inventory - those automated test interview questions you can't help but know
Yolov4 reading notes (with mind map)! YOLOv4: Optimal Speed and Accuracy of Object Detection
Cvpr2021 collection of papers | cvpr2021 latest papers | cvpr2021 review results | cvpr2021 admission results
Leetcode theme [array] -31- next spread
VFS appears when mounting a file system from an SD card: cannot open root device "mmcblk1p2“
Day 28/100 CI CD basic introductory concepts
How does pycharm create multiple console windows for debugging in different environments?
[opencv] opencv from introduction to mastery -- detailed explanation of input and output XML and yaml files
Online yaml to XML tool
2022年启牛学堂证券开户安全嘛?