The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Help with regular expressions arushunter Shell Programming and Scripting 13 12-23-2006 09:31 PM
regular expressions in c++ szzz High Level Programming 2 10-06-2003 07:33 AM
Regular Expressions AresMedia Shell Programming and Scripting 1 08-22-2002 12:55 PM
Regular expressions in sed mfreemantle Shell Programming and Scripting 2 02-12-2002 01:43 AM
Regular expressions in sed mfreemantle UNIX for Dummies Questions & Answers 3 02-11-2002 06:34 AM

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 04-18-2002
Registered User
 

Join Date: Jul 2001
Posts: 4
Question SCO vs Linux Reg Expressions Problem

Hi there,

I'm investigating migrating a system currently running Scos osr5 to Linux (eg RH 7.2) but there are a lot of in house scripts, some of which are probably using "Sco specific" constructs etc. One I have come across is as follows,

if [ -d [9a]????? ]
then ....etc.etc
fi

The regular expression allows for a variety of directory matching up in Sco, but so far I've not had any luck getting this to work under Linux. Is there an equivalent? All useful replies gratefully acknowledged
Forum Sponsor
  #2  
Old 04-18-2002
Neo's Avatar
Neo Neo is offline
Administrator
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 4,493
What shell script are you using? There are many ways to do what you want to do on Linux depending on the shell you are using? PERL? PHP? KSH?
  #3  
Old 04-18-2002
Registered User
 

Join Date: Jul 2001
Posts: 4
The Sco environment I'm attempting to replicate has most of its scripts written in the Korn shell, so I've used pdksh in Linux
Google The UNIX and Linux Forums
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 09:31 AM.


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