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
Loop problem with one more problem aliahsan81 Shell Programming and Scripting 3 01-07-2009 02:02 AM
problem in finding a hardware problem girish.batra SUN Solaris 8 09-09-2008 10:10 AM
ssh script problem problem pcjandyala Shell Programming and Scripting 2 07-31-2008 03:27 PM
problem with dd command or maybe AFS problem Anta Shell Programming and Scripting 0 08-25-2006 10:10 AM
SSH Problem auth problem budrito UNIX for Advanced & Expert Users 1 03-17-2004 10:12 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-16-2009
talashil talashil is offline
Registered User
  
 

Join Date: Apr 2008
Posts: 61
/bin/sh and /bin/ksh problem

we have a shell script that we are using in KSH
Code:
if [[ "${oraserver}" = @(+ASM*) ]]; then
                _IFS=$IFS
                IFS=:

and it's failing on /bin/sh . Is there a simple way to modify it to work on both . ( not with awk)

Thanks in adv

Last edited by Neo; 03-16-2009 at 12:13 PM.. Reason: code tags
  #2 (permalink)  
Old 03-16-2009
vidyadhar85's Avatar
vidyadhar85 vidyadhar85 is offline Forum Staff  
Moderator(The Tutor)
  
 

Join Date: Jun 2008
Location: INDIA
Posts: 1,390
Quote:
Originally Posted by talashil View Post
we have a shell script that we are using in KSH
Code:
if [[ "${oraserver}" = @(+ASM*) ]]; then
                _IFS=$IFS
                IFS=:

and it's failing on /bin/sh . Is there a simple way to modify it to work on both . ( not with awk)

Thanks in adv
try a single [ after if
Code:
 
if [ "${oraserver}" = @(+ASM*) ]
  #3 (permalink)  
Old 03-17-2009
radoulov's Avatar
radoulov radoulov is offline Forum Staff  
addict
  
 

Join Date: Jan 2007
Location: Варна, България / Milano, Italia
Posts: 2,847
Code:
case $oraserver in
  +ASM* ) _IFS=$IFS IFS=:;;
esac
  #4 (permalink)  
Old 03-17-2009
talashil talashil is offline
Registered User
  
 

Join Date: Apr 2008
Posts: 61
Thankyou Guys .
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 08:31 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