Sponsored Content
Full Discussion: Parsing in korn shell
Top Forums Shell Programming and Scripting Parsing in korn shell Post 302330101 by swetarati on Tuesday 30th of June 2009 08:34:40 AM
Old 06-30-2009
Parsing in korn shell

Hi Everyone,

how do i parse following string from a file xyz.log in korn shell ?
aa/bb{
CT{
GG{jjj/test}

Thanks in advance,
sweta
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Korn Shell

Hi I am new to shell programming. I need help to write a script to monitor a process on Sun OS. If the process fails then call a oracle procedure. i check the process if running by typing ps -ef | grep ESP | grep -v grep root 29002 1 0 Mar 18 ? 7:20... (4 Replies)
Discussion started by: gpanesar
4 Replies

2. Shell Programming and Scripting

KORN Shell - Spawn new shell with commands

I want to be able to run a script on one server, that will spawn another shell which runs some commands on another server.. I have seen some code that may help - but I cant get it working as below: spawn /usr/bin/ksh send "telnet x <port_no>\r" expect "Enter command: " send "LOGIN:x:x;... (2 Replies)
Discussion started by: frustrated1
2 Replies

3. Shell Programming and Scripting

how to convert from korn shell to normal shell with this code?

well i have this code here..and it works fine in kornshell.. #!/bin/ksh home=c:/..../ input=$1 sed '1,3d' $input > $1.out line="" cat $1.out | while read a do line="$line $a" done echo $line > $1 rm $1.out however...now i want it just in normal sh mode..how to convert this?... (21 Replies)
Discussion started by: forevercalz
21 Replies

4. UNIX for Dummies Questions & Answers

bourne shell or korn shell?

Hi, I have a script that uses "nohup" command to execute a korn shell script. Which one is the correct shell to use bourne shell or korn shell to execute a korn shell? and why? Thanks in advanced. (2 Replies)
Discussion started by: XZOR
2 Replies

5. Shell Programming and Scripting

korn shell

I am using korn shell but I want to have my prompt to represnent that of my C shell because I like it better. Is there anyway to do this? (1 Reply)
Discussion started by: vthokiefan
1 Replies

6. Shell Programming and Scripting

How to activate Korn Shell functionnalities in Bourne Shell

Hi All I have writing a Korn Shell script to execute it on many of our servers. But some servers don't have Korn Shell installed, they use Borne Shell. Some operations like calculation don't work : cat ${file1} | tail -$((${num1}-${num2})) > ${file2} Is it possible to activate Korn Shell... (3 Replies)
Discussion started by: madmat
3 Replies

7. Shell Programming and Scripting

String parsing in Korn Shell

Hi everybody, I have a string stored in a variable called record: record="SNMPv2-SMI::ent.9.9.43.1.3.9.2 = Timeticks: (177330898) 20 days, 12:35:08.98" I want to write some regular expressions good for Korn Shell to extract the number between parenthesis, in this case 177330898, and put it in... (3 Replies)
Discussion started by: omoyne
3 Replies

8. Shell Programming and Scripting

Parsing the list in korn shell

Hi I wanted to print/store just a specific element of the list . I have got the list as an output of grep command. here is code snap below : end_no=`egrep -ni '!return code: 0|return code other than 0' temp.log | cut -d':' -f1` this will return the line numbers in end_no. I just... (2 Replies)
Discussion started by: Shell@korn
2 Replies

9. Shell Programming and Scripting

Bourne shell & Korn shell

Could some one tell me the difference btw Bourne shell and the Kshell? Which is more flexible and reliable in terms of portability and efficiency. When i type the following command .. $ echo $SHELL yields me /bin/sh Does this tells me that I am in Bourne shell. If yes, how can i get... (6 Replies)
Discussion started by: bobby1015
6 Replies

10. Shell Programming and Scripting

New to korn shell

I am new to korn shell and slowly learning. Is there a way to have a parent script prompt for input and then execute a child script and return the output then move forward and ask for more input and then execute the next child script? I think the answer is no but thought i would ask. (2 Replies)
Discussion started by: cptkirkh
2 Replies
RSL 
Predicates(3) globus rsl RSL Predicates(3) NAME
RSL Predicates - Functions int globus_rsl_is_relation (globus_rsl_t *ast) int globus_rsl_is_boolean (globus_rsl_t *ast) int globus_rsl_is_relation_eq (globus_rsl_t *ast) int globus_rsl_is_relation_lessthan (globus_rsl_t *ast) int globus_rsl_is_relation_attribute_equal (globus_rsl_t *ast, char *attribute) int globus_rsl_is_boolean_and (globus_rsl_t *ast) int globus_rsl_is_boolean_or (globus_rsl_t *ast) int globus_rsl_is_boolean_multi (globus_rsl_t *ast) int globus_rsl_value_is_literal (globus_rsl_value_t *ast) int globus_rsl_value_is_sequence (globus_rsl_value_t *ast) int globus_rsl_value_is_variable (globus_rsl_value_t *ast) int globus_rsl_value_is_concatenation (globus_rsl_value_t *ast) Detailed Description The functions in this group return boolean values indicating whether an RSL syntax tree is of a particular type. Function Documentation int globus_rsl_is_relation (globus_rsl_t *ast) RSL relation test. The globus_rsl_is_relation() function tests whether the the RSL pointed to by the ast parameter is a relation. The RSL syntax supports the following relation operations: = Equal != Not Equal > Greater Than >= Greater Than or Equal < Less Than <= Less Than or Equal <= Less Than or Equal Some examples of RSL relations are 'queue' = 'debug' 'queue' != 'slow' 'min_memory' > '1000' 'max_wall_time' >= '60' 'count < '10' 'host_count' <= '5' GRAM only supports equality relations. Parameters: ast Pointer to an RSL parse tree structure. Returns: The globus_rsl_is_relation() function returns GLOBUS_TRUE if the RSL parse tree pointed to by ast is a relation; otherwise, it returns GLOBUS_FALSE. int globus_rsl_is_boolean (globus_rsl_t *ast) RSL boolean test. The globus_rsl_is_boolean() function tests whether the the RSL pointed to by the ast parameter is a boolean composition of other RSL parse trees. The syntactically understood boolean compositions are '&' (conjunction), '|' (disjunction), and '+' (multi- request). Some bexamples of RSL booleans are & ( 'queue' = 'debug') ( 'max_time' = '10000') | ('count' = '1')('count' = '10') + ( &('executable' = '1.exe') ) ( & ('executable' = '2.exe' ) Parameters: ast Pointer to an RSL parse tree structure. Returns: The globus_rsl_is_boolean() function returns GLOBUS_TRUE if the RSL parse tree pointed to by ast is a boolean composition; otherwise, it returns GLOBUS_FALSE. int globus_rsl_is_relation_eq (globus_rsl_t *ast) RSL equality operation test. The globus_rsl_is_relation_eq() function tests whether the the RSL pointed to by the ast parameter is an equality relation. An example of an equality relation is 'queue' = 'debug' Parameters: ast Pointer to an RSL parse tree structure. Returns: The globus_rsl_is_relation_eq() function returns GLOBUS_TRUE if the RSL parse tree pointed to by ast is an equality relation; otherwise, it returns GLOBUS_FALSE. int globus_rsl_is_relation_lessthan (globus_rsl_t *ast) RSL less than operation test. The globus_rsl_is_relation_lessthan() function tests whether the the RSL pointed to by the ast parameter is a less-than relation. An example of a less-than relation is 'count' = '10' Parameters: ast Pointer to an RSL parse tree structure. Returns: The globus_rsl_is_relation_lessthan() function returns GLOBUS_TRUE if the RSL parse tree pointed to by ast is a less-than relation; otherwise, it returns GLOBUS_FALSE. int globus_rsl_is_relation_attribute_equal (globus_rsl_t *ast, char *attribute) RSL attribute name test. The globus_rsl_is_relation_attribute_equal() function tests whether the the RSL pointed to by the ast parameter is a relation with the attribute name which matches the string pointed to by the attribute parameter. This attribute name comparision is case- insensitive. Parameters: ast Pointer to an RSL parse tree structure. attribute Name of the attribute to test Returns: The globus_rsl_is_relation_attribute_equal() function returns GLOBUS_TRUE if the RSL parse tree pointed to by ast is a relation and its attribute name matches the attribute parameter; otherwise, it returns GLOBUS_FALSE. int globus_rsl_is_boolean_and (globus_rsl_t *ast) RSL boolean and test. The globus_rsl_is_boolean_and() function tests whether the the RSL pointed to by the ast parameter is a boolean 'and' composition of RSL trees. An example of a boolean and relation is & ( 'queue' = 'debug' ) ( 'executable' = 'a.out' ) Parameters: ast Pointer to an RSL parse tree structure. Returns: The globus_rsl_is_boolean_and() function returns GLOBUS_TRUE if the RSL parse tree pointed to by ast is a boolean and of RSL parse trees; otherwise, it returns GLOBUS_FALSE. int globus_rsl_is_boolean_or (globus_rsl_t *ast) RSL boolean or test. The globus_rsl_is_boolean_or() function tests whether the the RSL pointed to by the ast parameter is a boolean 'or' composition of RSL trees. An example of a boolean or relation is | ( 'count' = '2' ) ( 'count' = '4' ) Parameters: ast Pointer to an RSL parse tree structure. Returns: The globus_rsl_is_boolean_or() function returns GLOBUS_TRUE if the RSL parse tree pointed to by ast is a boolean and of RSL parse trees; otherwise, it returns GLOBUS_FALSE. int globus_rsl_is_boolean_multi (globus_rsl_t *ast) RSL boolean multi test. The globus_rsl_is_boolean_multi() function tests whether the the RSL pointed to by the ast parameter is a boolean 'multi-request' composition of RSL trees. An example of a boolean multie-request relation is + ( &( 'executable' = 'exe.1') ( 'count' = '2' ) ) ( &( 'executable' =' exe.2') ( 'count' = '2' ) ) Parameters: ast Pointer to an RSL parse tree structure. Returns: The globus_rsl_is_boolean_multi() function returns GLOBUS_TRUE if the RSL parse tree pointed to by ast is a boolean multi-request of RSL parse trees; otherwise, it returns GLOBUS_FALSE. int globus_rsl_value_is_literal (globus_rsl_value_t *ast) RSL literal string test. The globus_rsl_value_is_literal() function tests whether the the RSL value pointed to by the ast parameter is a literal string value. An example of a literal string is 'count' Parameters: ast Pointer to an RSL value structure. Returns: The globus_rsl_value_is_literal() function returns GLOBUS_TRUE if the RSL value pointed to by ast is a literal string value; otherwise, it returns GLOBUS_FALSE. int globus_rsl_value_is_sequence (globus_rsl_value_t *ast) RSL value sequence test. The globus_rsl_value_is_sequence() function tests whether the the RSL value pointed to by the ast parameter is a sequence of RSL values. An example of a sequence of values is '1' '2' '3' Parameters: ast Pointer to an RSL value structure. Returns: The globus_rsl_value_is_sequence() function returns GLOBUS_TRUE if the RSL value pointed to by ast is a value sequnce; otherwise, it returns GLOBUS_FALSE. int globus_rsl_value_is_variable (globus_rsl_value_t *ast) RSL value variable test. The globus_rsl_value_is_variable() function tests whether the the RSL value pointed to by the ast parameter is a variable reference. RSL values. An example of a variable reference is $( 'GLOBUSRUN_GASS_URL' ) Parameters: ast Pointer to an RSL value structure. Returns: The globus_rsl_value_is_sequence() function returns GLOBUS_TRUE if the RSL value pointed to by ast is a value sequnce; otherwise, it returns GLOBUS_FALSE. int globus_rsl_value_is_concatenation (globus_rsl_value_t *ast) RSL value concatenation test. The globus_rsl_value_is_concatenation() function tests whether the the RSL value pointed to by the ast parameter is a concatenation of RSL values. An example of an RSL value concatenation is $( 'GLOBUSRUN_GASS_URL' ) # '/input' Parameters: ast Pointer to an RSL value structure. Returns: The globus_rsl_value_is_concatenation() function returns GLOBUS_TRUE if the RSL value pointed to by ast is a value concatenation; otherwise, it returns GLOBUS_FALSE. Author Generated automatically by Doxygen for globus rsl from the source code. Version 9.1 Wed Jan 25 2012 RSL Predicates(3)
All times are GMT -4. The time now is 06:57 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy