The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
end of file unexpected
.
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
:
end of file unexpected
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
03-11-2008
nua7
Registered User
Join Date: Mar 2008
Location: /bin/sh
Posts: 353
Looks like there is a syntax problem. check if all the loops are closed.
cat file1 | tr -s " " | cut -d " " -f 2
This command opens the file, tr-s command deletes the extra spaces, so that space can be used as a delimiter.
For more information, man cut...
nua7
View Public Profile
Find all posts by nua7
Find nua7's past nominations received
Find nua7's present nominations given