The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
unexpected end of file
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
unexpected end of file
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
3
(
permalink
)
10-15-2007
reborg
Administrator
Join Date: Mar 2005
Location: Ireland
Posts: 4,233
'Done' must be in lowercase.
Also the code choice is very poor, it will break fo any file with a space in it.
Code:
for file in * ; do mv "$i" "$srchive" done
reborg
View Public Profile
Find all posts by reborg
Find reborg's past nominations received
Find reborg's present nominations given