|
| From: | Roger |
| Subject: | Re: [Help-bash] for File in Folder_Variable_Name Expansion |
| Date: | Sun, 15 Dec 2013 18:23:37 -0900 |
| User-agent: | Mutt/1.5.21 (2010-09-15) |
The following performs correctly, however I'm not used to seeing variable
assignments encased in parenthesis!
$ FOLDER=( ${HOME}/Books/Learning\ C/cse142/Lecture1/Files/slides/ ); for file
in "${FOLDER}"/*.jpg; do echo "${file}"; done
--
Roger
http://rogerx.freeshell.org/
| [Prev in Thread] | Current Thread | [Next in Thread] |