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
Combining Expressions davewg UNIX for Dummies Questions & Answers 6 02-24-2009 11:15 AM
Tagged regular expressions(TRE) in unix navojit dutta Shell Programming and Scripting 0 08-27-2007 06:44 AM
regular expressions in c++ szzz High Level Programming 2 10-06-2003 11:33 AM
Regular expressions in sed mfreemantle Shell Programming and Scripting 2 02-12-2002 04:43 AM
Regular expressions in sed mfreemantle UNIX for Dummies Questions & Answers 3 02-11-2002 09:34 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-04-2009
786habeeb 786habeeb is offline
Registered User
  
 

Join Date: Mar 2009
Location: Indianapolis
Posts: 2
Unix Expressions

Hi to all,
this is my first time in the forum...and I know some basic's about UNIX...
I want to write an expression to validate a field.
field is varchar2, length is 5, can be from '00001' to '99999'.
no loops or if condition, just check the value if between these two numbers it is OK if it is '00000' expression will fail.
How can I do this, and could you explain some details about how it is done.

Thanks

Habeeb
  #2 (permalink)  
Old 03-04-2009
vbe's Avatar
vbe vbe is offline Forum Staff  
Moderator
  
 

Join Date: Sep 2005
Location: Switzerland - GE
Posts: 1,575
Quote:
field is varchar2, length is 5, can be from '00001' to '99999'.
Sounds very oracle to me...
I though I knew a little unix, reading this post makes me doubt...
What do you call expression?
Is it a simple test condition you are looking for?
  #3 (permalink)  
Old 03-04-2009
786habeeb 786habeeb is offline
Registered User
  
 

Join Date: Mar 2009
Location: Indianapolis
Posts: 2
yes, its a simple test
will this work
egrep '[1-9]'

or if I can provide a ragne like this
egrep '['00001'-'99999']
will this work?

Last edited by DukeNuke2; 03-04-2009 at 02:46 PM..
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 01:11 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