The UNIX and Linux Forums  

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
script help needed --- awk? scuderiaf1 Shell Programming and Scripting 7 06-23-2008 09:23 AM
Script needed vpandey Shell Programming and Scripting 3 03-04-2008 09:45 AM
help needed! my first script fcbarcelona1984 Shell Programming and Scripting 1 11-04-2007 12:32 PM
Help needed in Shell Script nvuradi Shell Programming and Scripting 1 10-24-2007 06:56 AM
Script Needed Dastard SUN Solaris 1 03-20-2007 10:54 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 11-18-2008
Sagarddd Sagarddd is offline
Registered User
  
 

Join Date: Nov 2008
Posts: 12
Thumbs down Script help needed

I have a code given below...

ERROR=`grep "Job Status" ${LOG_FILE}`
ERROR=${ERROR##*\(}
ERROR=${ERROR%%\)*}
if [ "${failedstart}" = 0 -a "${ERROR}" = 1 -o "${ERROR}" = 2 ]
then
echo "The job completed successfully"
EXIT_STATUS=0
else
echo "The job failed"
EXIT_STATUS=1
fi

can anybody tell me what is
ERROR=${ERROR##*\(}
ERROR=${ERROR%%\)*}

is doing...??

i dont understand the command.....## and %% what it does?
  #2 (permalink)  
Old 11-18-2008
danmero danmero is offline Forum Advisor  
  
 

Join Date: Nov 2007
Location: 45.48-73.63
Posts: 1,441
Read BASH(1) Manual Page
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: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