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 here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Determine string in Perl. ejdv Shell Programming and Scripting 4 05-14-2008 01:34 AM
awk/sed - getting string instead of number hrwath Shell Programming and Scripting 2 03-24-2008 04:26 AM
Determine Number of Processes Running wayne1411 Shell Programming and Scripting 4 12-17-2007 12:06 PM
determine number of xterm connected inquirer HP-UX 0 04-06-2004 12:07 AM
string to number George_king Shell Programming and Scripting 2 09-10-2003 01:48 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 02-21-2006
csaha's Avatar
Registered User
 

Join Date: Feb 2005
Posts: 81
$A is a number / any other string? How to determine ?

I have a variable (say $A) and while passing it gets either a number or some other string. Now how can test (with if else) whether the variable is just a ne or something else ?

Thanks a lot to all in advance
C Saha
Reply With Quote
Forum Sponsor
  #2  
Old 02-21-2006
vino's Avatar
Supporter (in vino veritas)
 

Join Date: Feb 2005
Location: Bangalore, India
Posts: 2,698
This might help - ksh : find value type
Reply With Quote
  #3  
Old 02-21-2006
Technorati Master
 

Join Date: Mar 2005
Location: Large scale systems...
Posts: 2,610
just take a look at this thread,

search_forum
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 10:24 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0