Hi can someone please help me on this.
I need to perform this code:
Grep any lines that meets the following criteria
(A AND B) OR (A AND C)
I tried this code, but it didn't work
Grep-I "A &&B" | "A&&C" *.* $
thanks in advance (12 Replies)
Hi:confused:,
I have a file that contains :
+-----------------------------------------------------------------------------+
LABEL: super1_fix
EFIX FILES: 1
ABSTRACT: epkg for touch command
PRE-REQUISITES: no
PACKAGER VERSION: 7
REBOOT REQUIRED: no
BUILD BOOT... (4 Replies)
On Linux OS, bash environment, I want implement the following code:
if && ( || )
A,B,C represents some compare conditions.
How to realize it ?
Thanks! (1 Reply)
Please tell me how to nest logical expressions in bash. I would like to nest logical expressions for arguments of the "test" command on bash.
The following pseudo-code shows my intention.
// pseudo code
if (exp1 AND (exp2 OR exp3))
{
Output true;
}
else
{
Output false;
}
... (11 Replies)
Using good ole fashion bourne shell scripting I have to take 2 files and compare them 1:1 in a Logical OR "gate" or function and then output the info into a 3rd file. I have never tried anything like this before :eek: so any hand holding will be much "Thanked"
OR Gate being:
A, B, Result
0,... (2 Replies)
Hi,
i want to check if a variable var1 is not a or b or c
pseudo code:
If NOT (var1 = a or var1 = b or var1 = c)
then
...
fi
I want to use POSIX complaint Korn shell, and for string comparison
For the following code, logical.sh
#!/usr/bin/ksh
var="j"
echo "Var : $var"
if ! { || ||... (12 Replies)
Hi,
I am trying to check if two input files exist before the rest of the scripts is run. Following is the code that I have but it gives me syntax error.
if
then
echo "File not found"
else
echo "File found"
fi (3 Replies)
I have a shell script (.sh) and I want to pass a parameter value to the awk command but I am getting exception, please assist.
diff=$1$2.diff
id=$2 new=new_$diff
echo "My id is $1"
echo "I want to sync for user account $id"
##awk command I am using is as below
cat $diff | awk... (2 Replies)
Dear Unix gurus,
We have a config shell script file which has 30 variables which needs to be passed to master unix shell script that invokes oracle database sessions. So those 30 variables need to go through the database sessions (They are inputs) via a shell script. one of the variable name... (1 Reply)
Dear Unix gurus,
We have a config shell script file which has 30 variables which needs to be passed to master unix shell script that invokes oracle database sessions. So those 30 variables need to go through the database sessions (They are inputs) via a shell script. one of the variable name... (1 Reply)
Discussion started by: dba1981
1 Replies
LEARN ABOUT CENTOS
xmstringtableunparse
XmStringTableUnparse(library call) XmStringTableUnparse(library call)
NAME
XmStringTableUnparse -- A convenience function that converts a table of compound strings to an array of text
SYNOPSIS
#include <Xm/Xm.h>
XtPointer * XmStringTableUnparse(
XmStringTable table,
Cardinal count,
XmStringTag tag,
XmTextType tag_type,
XmTextType output_type,
XmParseTable parse,
Cardinal parse_count,
XmParseModel parse_model);
DESCRIPTION
XmStringTableUnparse takes an array of compound strings, allocates a string array for the type of characters determined by type with an
equal number of slots, calls XmStringUnparse on each compound string in table, and inserts the resulting string in the corresponding slot
in the array.
table Specifies an XmStringTable containing the compound string to be converted.
count Specifies the number of compound strings in table.
tag Specifies the tag to be used in matching with text segments. The two types of tag types are XmFONTLIST_DEFAULT_TAG and
_MOTIF_DEFAULT_LOCALE. Only segments tagged with tag will be returned. If tag is NULL, all segments will be matched.
tag_type Specifies the type of tag to be searched for. These types include XmMULTIBYTE_TEXT, XmWIDECHAR_TEXT, and XmCHARSET_TEXT.
output_type
Specifies the type of text to be generated. These types include XmMULTIBYTE_TEXT, XmWIDECHAR_TEXT, and XmCHARSET_TEXT.
parse Specifies the parse table to be used.
parse_count
Specifies the number of items in parse.
parse_model
Specifies which non-text components to be considered in matching in parse_table. Possible values are:
XmOUTPUT_ALL
Puts out all matching components.
XmOUTPUT_BETWEEN
Puts out only those matching components that are between two matching text components.
XmOUTPUT_BEGINNING
Puts out only those matching components that are at the beginning of a matching text component.
XmOUTPUT_END
Puts out only those matching components that are at the end of a matching text component.
XmOUTPUT_BOTH
Puts out only those matching components that are at the beginning or end of a matching text component.
RETURN
Returns an allocated array of allocated strings. The application is responsible for managing the allocated space. The application can
recover the allocated strings space by calling XtFree count times (that is, one time for each allocated string). The application can then
recover the allocated array by calling XtFree on the allocated array itself.
RELATED
XmStringTab.
XmStringTableUnparse(library call)