Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
How to extract a string in unix
Name: ch Bushu Date: May 7, 2009 at 02:47:17 Pacific OS: Unix Subcategory: General
Comment:
Hi,
Can any one tell me how to extract a between the brackets?
My scenario is I have three line like: Queue(FirstQueuename) Queue(SecondQueuename) Queue(ThirdQueuename)
I want all the queue names to be displayed as below:
Name: lankrypt0 Date: May 7, 2009 at 11:45:01 Pacific
Reply:
Sure with that statement, you actually have two replacements
the first: s/.*(//g -- [the important part is the .*(] matches and deletes everything from the beginning of the line up to and including the (
The second: s/).*//g -- [the important part is the ).*] matches and deletes everything from and including the ) to the end of the line. which leaves the stuff in the middle.
Summary: how to pass a variable from unix environment to oracle procedure ? ex: actual_file_name=`head -1 $IMINT_OWBHOME/temp|tail -1` $ORA_BIN_HOME/sqlplus $IMINT_STG_USER/$IMINT_STG_PASSWD@$IMINT_STG_TNS exe...
Summary: Hi folks, Does anybody know how to list a directory in real time. (sort of what tail -f would do for a file), I need to be able to constantly poll a directory every 100miliseconds or so to see if a ne...
Summary: Hi, I'm a beginner script user. It there any shell script example where I could reference on how to check a file in a directory is there before overwrite it in unix AIX 4.3.3. Reg Aixbeginner ...