The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
'end of file' unexpected srisreeku Shell Programming and Scripting 1 04-28-2008 02:39 PM
unexpected 'end of file' + sed command kamel.seg High Level Programming 1 02-08-2008 11:00 AM
unexpected end of file dineshr85 Shell Programming and Scripting 2 10-15-2007 02:47 AM
gunzip: unexpected end of file sicjedi UNIX for Advanced & Expert Users 4 09-15-2006 10:41 AM
'end of file' unexpected abhijeetkul Shell Programming and Scripting 4 04-10-2006 06:42 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-11-2008
naveeng.81 naveeng.81 is offline
Registered User
  
 

Join Date: Mar 2008
Posts: 14
Post end of file unexpected

hi
i have error like this' syntax error end of file unexecpeted.and give me the example of cut command
as soon as possible:
  #2 (permalink)  
Old 03-11-2008
nua7 nua7 is offline
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...
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:45 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0