troubleshooting Question

Please help me with this script

Avatar of ForLoop5
ForLoop5Flag for United States of America asked on
Apple OSSwift Programming
4 Comments1 Solution580 ViewsLast Modified:
I got some help with the script below.    But when I run the script I get an error that says "line 2: syntax error: unexpected end of file" Anyone know what is wrong?  I am running mac os 10.7.  I am saving the script as a .sh file and applying the chmod u+x permissions before running the script.

for USER in {ls -1 /Volumes/Data/Students}
echo rm -rf /Volumes/Data/Students/$USER/Library/Application\ Support/Adobe/Acrobat
echo rm -rf /Volumes/Data/Students/$USER/Library/Application\ Support/Adobe/Flash\ CS5
echo mkdir -p /Volumes/Data/Students/$USER/Library/Application\ Support/Adobe/Acrobat
echo ln -s /Users/Shared /Volumes/Data/Students/$USER/Library/Application\ Support/Adobe/Acrobat/9.0_x86
echo ln -s /Users/Shared /Volumes/Data/Students/$USER/Library/Application\ Support/Adobe/Flash\ CS5
echo cp -a /var/root/resources/ /Volumes/Data/Students/$USER/Library/Preferences/
echo chmod 777 /Volumes/Data/Students/$USER/Library/Preferences/

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros