![Unusual "unexpected end of file" and "near unexpected token" syntax errors - Shell Programming and Scripting - Unix Linux Community Unusual "unexpected end of file" and "near unexpected token" syntax errors - Shell Programming and Scripting - Unix Linux Community](https://community.unix.com/uploads/default/original/3X/0/4/046c90f7b8a8995a0894a2a7c0dcb5b6841a4b52.jpeg)
Unusual "unexpected end of file" and "near unexpected token" syntax errors - Shell Programming and Scripting - Unix Linux Community
![shell script - Syntax error near unexpected token `}' in a Bash function with an if-then statement - Unix & Linux Stack Exchange shell script - Syntax error near unexpected token `}' in a Bash function with an if-then statement - Unix & Linux Stack Exchange](https://i.stack.imgur.com/3NKZM.png)
shell script - Syntax error near unexpected token `}' in a Bash function with an if-then statement - Unix & Linux Stack Exchange
![Why doesn't this work i get unexpected token at line 16 “done” if i remove it i get syntax error unexpected end of file : r/bash Why doesn't this work i get unexpected token at line 16 “done” if i remove it i get syntax error unexpected end of file : r/bash](https://preview.redd.it/why-doesnt-this-work-i-get-unexpected-token-at-line-16-done-v0-q0c7zvtvc8c91.jpg?auto=webp&s=c3b3883c5992b18513260c44feb6a07acd2549e0)
Why doesn't this work i get unexpected token at line 16 “done” if i remove it i get syntax error unexpected end of file : r/bash
![if statement - Bash : Syntax error near unexpected token `elif' with if/then blocks w/ only comments - Stack Overflow if statement - Bash : Syntax error near unexpected token `elif' with if/then blocks w/ only comments - Stack Overflow](https://i.stack.imgur.com/nWsgz.png)
if statement - Bash : Syntax error near unexpected token `elif' with if/then blocks w/ only comments - Stack Overflow
![Learn-bash-scripting-by-building-five-programs/build-five-programs - Backend Development - The freeCodeCamp Forum Learn-bash-scripting-by-building-five-programs/build-five-programs - Backend Development - The freeCodeCamp Forum](https://global.discourse-cdn.com/freecodecamp/original/4X/5/4/2/5425b53e1204a02a2ddd130fedbe34cfc339af05.png)
Learn-bash-scripting-by-building-five-programs/build-five-programs - Backend Development - The freeCodeCamp Forum
![Learn-bash-scripting-by-building-five-programs/build-five-programs - Backend Development - The freeCodeCamp Forum Learn-bash-scripting-by-building-five-programs/build-five-programs - Backend Development - The freeCodeCamp Forum](https://global.discourse-cdn.com/freecodecamp/original/4X/b/c/a/bcae3731a9c8ab344f2a095316fde882eb367286.png)