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 > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Want to Convert Scripts in Linux format niceboykunal123 Shell Programming and Scripting 1 05-28-2008 02:28 AM
Unix/Linux Scripts questions am2007 UNIX for Dummies Questions & Answers 7 10-03-2007 01:20 PM
Linux Scripts Strm2k UNIX for Dummies Questions & Answers 1 09-26-2005 04:29 AM
scripts in another linux m/c via ssh esham Shell Programming and Scripting 4 08-22-2005 07:56 AM
Porting of Windows written unix scripts to unix platform tamilselvi UNIX for Advanced & Expert Users 7 10-02-2002 10:55 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 12-21-2005
pjconfig pjconfig is offline
Registered User
  
 

Join Date: Dec 2005
Posts: 2
Post pulling scripts from unix to linux

I am working on transferring "good" running code scripts from unix to linux (suse). Some errors show in linux that are not present in unix. Specifically, the error code is: codename [2886]: no closing quote This is referring to the last line of the code + one line. I have used temporary exit to locate the place where the error begins. It seems to be in the code below, but I am crossed eyed trying to find the error. Can anyone help?
for fields in 16 17 18 19 20
do
info[${x}]=`print "${line}" | awk -v fld=${fields} 'BEGIN {FS="
"} {print $fld}' | sed 's/^ *//' | sed 's/ *$//'`
if [[ ${#info[${x}]} -eq 0 ]] then
break
fi
x=`expr ${x} + 1`
done
slash_tst=`print "${info[2]}" | awk '{print substr($0,length($0))}'`
if [[ "${slash_tst}" = "/" ]] then
  #2 (permalink)  
Old 12-21-2005
Gollum's Avatar
Gollum Gollum is offline
Our Pet ForumBot
  
 

Join Date: Feb 2005
Posts: 64
Post RE: pulling scripts from unix to linux

Quote:
Originally Posted by pjconfig
I am working on transferring "good" running code scripts from unix to linux (suse). Some errors show in linux that are not present in unix. Specifically, the error code is: codename [2886]: no closing quote This is referring to the last line of the code + one line. I have used temporary exit to locate the place where the error begins. It seems to be in the code below, but I am crossed eyed trying to find the error. Can anyone help?
for fields in 16 17 18 19 20
do
info[${x}]=`print "${line}" | awk -v fld=${fields} 'BEGIN {FS="
"} {print $fld}' | sed 's/^ *//' | sed 's/ *$//'`
if [[ ${#info[${x}]} -eq 0 ]] then
break
fi
x=`expr ${x} + 1`
done
slash_tst=`print "${info[2]}" | awk '{print substr($0,length($0))}'`
if [[ "${slash_tst}" = "/" ]] then
Do you have any idea what I am talking about?
Some may errors show in linux that are not present in unix, but not all.
Who told you that? Cool.
I have
a birthday on 2001.
I agree. Are you in the code below but he or she am crossed eyed trying to find the error ?Suppose they do.Your purpose is fields in 16 17 18 19 20 do infoprint $beginscriptlineendscript | awk -v fld$beginscriptfieldsendscript 'BEGIN beginscriptFSendscript beginscriptprint $fldendscript' | sed 's^ *' | sed 's *$' if endscript -eq 0 ]] then break fi xexpr $beginscriptxendscript + 1 done slash_tstprint $beginscriptinfoendscript | awk 'beginscriptprint substr$0length$0endscript' if ].
  #3 (permalink)  
Old 12-21-2005
vgersh99's Avatar
vgersh99 vgersh99 is online now Forum Staff  
Moderator
  
 

Join Date: Feb 2005
Location: Boston, MA
Posts: 5,119
I've moved this thread to a more appropriate forum.
  #4 (permalink)  
Old 12-21-2005
pjconfig pjconfig is offline
Registered User
  
 

Join Date: Dec 2005
Posts: 2
tried suggestion and get same error as when I try to correct it. See below

[2121]: syntax error: `fi' unexpected
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 09:37 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