Hi
I have a input file with many fields and each filed will be with in double quotes(""). i want to check fields contains balnk,null or space using condition using if. when i write code as below for if condition its not working
a=`awk -F ',' '{gsub("\"", "", $1);'NF==0';printf $1}'... (3 Replies)
I have a control file which tells me which are the fields in the files I need to compare and based on the values I need to print the exact value if key =Y and output is Y , or if output is Y/N then I need to print only Y if it matches or N if it does not match and if output =N , then skip the feild... (7 Replies)
Please help me with this:
I need to compare two values in if condition in shell script but its goes always to else condition:
TIME_CHECK=PM
TIME-CLOCK=PM
if ; then
echo "You have access!"
else
echo "ACCESS DENIED!"
fi (5 Replies)
hi
my problem is little complicated one. i have 2 files which appear like this
file 1
abbsss:aa:22:34:as akl abc 1234
mkilll:as:ss:23:qs asc abc 0987
mlopii:cd:wq:24:as asd abc 7866
file2
lkoaa:as:24:32:sa alk abc 3245
lkmo:as:34:43:qs qsa abc 0987
kloia:ds:45:56:sa acq abc 7805
i... (5 Replies)
I have files with naming as below,
testS123,
testS223,
testB1,
testC1,
testD1
I need to write a if condition to print 'Hello' when the file prefix is not testS* else 'Good bye'.
if
then
echo "Hello"
else
echo "Good bye"
fi; (1 Reply)
Hello there.
I am trying to compare two files.
File1
Austria Mobile 1
United Kingdom Mobile 1
...
File2
Austria Mobile Vien 2
Austria Mobile Ostr 0
United Kingdom Mobile Dev 0.7
United Kingdom Mobile OST 1.5
What i want to do is to compare both files and... (12 Replies)
I am preparing a script to check the configuration of the db2 against the standard configuration. I am fetching the output in file A and want to compare it with the standard output written in file B.
File A
Diagnostic error capture level (DIAGLEVEL) = 3
Audit buffer size (4KB) (AUDIT_BUF_SZ)... (2 Replies)
Discussion started by: bashb
2 Replies
LEARN ABOUT SUSE
ivmconfigconditions.xml
IVMCONFIGCONDITIONS.XML(5) File Formats Manual IVMCONFIGCONDITIONS.XML(5)NAME
IvmConfigConditions.xml - rules for processing hardware conditions by ivman(8)DESCRIPTION
IvmConfigConditions.xml specifies hardware conditions to be caught by ivman(8), and allows running of certain commands when devices emit
conditions.
IvmConfigConditions.xml is parsed as an XML file. The general form of the file is:
<?xml version="1.0" encoding="UTF-8"?>
<ivm:ConditionsConfig version="0.1" xmlns:ivm="http://www.eikke.com/ivm">
<ivm:Match name="matchname" value="matchvalue">
<ivm:Condition name="conditionname1" exec="command1" />
<ivm:Condition name="conditionname1" exec="command1" />
</ivm:Match>
...
</ivm:PropertiesConfig>
Each time a condition is emitted by a device, this file will be parsed. If the Match rule matches the device on which the condition came
from, and the Condition rule matches the name of the condition which occurred, then the command specified in the 'exec' option will be exe-
cuted.
A Match element can have any of the following names:
ivm.mountable
Whether or not HAL specifies that a device can and should be mounted. Must be "true" or "false".
hal.anything
The string in place of "anything" will be taken as the name of a HAL property string for the device, and the value of the prop-
erty will be compared to the value given. Run 'lshal' to see a list of HAL properties which can be used here.
* Match every device. Use with care!
As many Matches can be nested as is desired.
Condition names usually take the form of something like 'ButtonPressed', which may occur when an ACPI-enabled button is pressed on your
machine. See the HAL specification for a full list of possible conditions.
The exec attributes of Condition tags support substitution of HAL device properties. This is accomplished by surrounding the property name
with $ symbols. For instance, if $hal.volume.mount_point$ is within a command, it will be replaced with the volume's mount point before
execution. No character escaping is done in the substitution, but the characters ' and " are replaced with ?, so you can surround the sub-
stitution with quotes without fear.
Remember that this is an XML file, which means that characters which have a special meaning in XML (entities) need to be escaped. Some
characters which are popular in shell scripting (&, <, >) are among these special characters. As a quick reference, & becomes & , <
becomes < , > becomes > , ' becomes ' and " becomes " .
SEE ALSO ivman(8), IvmConfigBase.xml(5), IvmConfigActions.xml(5)
12 May 2005 IVMCONFIGCONDITIONS.XML(5)