The Cookie Machine - Click here to drag window

DUMMY TEXT - Real text set in assets/js/theCookieMachine.js

Views: 2,026     Votes:  1     ✅ Solution
Tags: command-line   bash  
Link: 🔍 See Original Answer on Ask Ubuntu 🔗

Title: syntax error near unexpected token `
ID: /2019/12/14/syntax-error-near-unexpected-token-_
Created: December 14, 2019
Upload: November 24, 2022    Layout:  post
TOC: false    Navigation:  false    Copy to clipboard:  false

The command itself works fine:

$ for d in */; do echo "$d" ; done

However you have a hidden ' in front of the for command. Perhaps the file was copied from Windows. The easiest solution is to create a new file and copy the above command into it.

⇧ Upgrade or Fresh Install to Ubuntu 16.04 if I currently have Ubuntu 14.04 Package for reporting GUI problem in Ubuntu 19.10  ⇩