syntax error near unexpected token ` solution

Edit the AA.SH file under windows, and then run the sh file under linux, an error will be reported.

The reason is because the encoding format of the two operating systems is inconsistent.

Solution:
1. After editing in window, then use vi editor to edit this sh file.
2. Type :set fileformat=unix and press Enter
3. Type :wq and press Enter


and then unblocked.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327040411&siteId=291194637