---
title: "shell ParseException line 1:6 cannot recognize input near '<EOF>' '<EOF>' '<EOF>"
author: "chy0919"
date: "2016-01-12T15:10:40Z"
tags: []
categories: ["开源软件"]
slug: "shell-parseexception-line-1-6-cannot-recognize-input-near-eof-eof-eof"
draft: false
lastmod: "2016-01-12T15:11:38Z"
id: 2270075
url: "https://chy0919.iteye.com/blog/2270075"
---

本人在写好shell脚本部署到linux机器运行时，报错信息为：ParseException line 1:6 cannot recognize input near '&lt;EOF&gt;' '&lt;EOF&gt;' '&lt;EOF&gt;' in select clause，初看貌似是shell脚本语法有问题，其实是因为shell脚本文件不是UNIX格式，然后在NotePad++编辑器中打开脚本文件，点击编辑-&gt;档案格式转换-&gt;转换为UNIX格式，OK，问题解决了，再次部署运行一切正常。