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
Meet IT industry analyst Dan Kusnetzky (video) iBot UNIX and Linux RSS News 0 04-15-2008 05:30 PM
Meet the Oracle TimesTen In-Memory Database iBot Oracle Updates (RSS) 0 04-06-2008 06:10 AM
Mac OS X - Tiger - Meet the world’s most advanced operating system. Neo News, Links, Events and Announcements 0 04-26-2005 10:05 PM

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 01-25-2007
Lutchumaya Lutchumaya is offline
Registered User
  
 

Join Date: Jan 2007
Posts: 11
Need to meet anbu23

hi anbu23 u have just replied to my post i want to ask u something else can we get into contact thanks
or reply itself

mv -f $XXTEST_TOP/install/SPE1/XXTEST_SPE1_XX_QUOTE_DETAILS_TBL.sql $XXTEST_TOP/admin2/sql
if [ $? -eq 0 ]
then
echo "Move is successful"
fi

1. What u mean by $? here can u be more explicit please am really new to shell scripting ..
Again thank you for your kind attention
  #2 (permalink)  
Old 01-25-2007
anbu23 anbu23 is offline Forum Advisor  
Registered User
  
 

Join Date: Mar 2006
Location: Bangalore,India
Posts: 1,398
Code:
name="Lutchumaya"
To display the value of the variable
Code:
echo $name
$ followed by variable name gives the value stored in that variable

? is the shell variable which stores the exit status of the previously executed command.
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 11:07 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