Apologies for not having the most accurate of thread titles.. I'm using IBM Rational Synergy CM software. I use the Synergy commands in tandem with Unix commands.
I have a directory containing source code objects:
I also have another directory which contains the execuatables for these source code files. They have different version numbers:
I know how to run a command to return just the version number for the source object, but I don't know how to apply it to the executable. I use a Synergy command to change the object version number. I just need to be able to have all the source code version numbers in a variable which I can use in the Synergy command.
Any advice would be must appreciated.
Glyn
Last edited by pludi; 06-28-2010 at 09:17 AM..
Reason: code tags, please...
In AWK script how do I store data in variables for later use.
I have a multiline input and I do not want to print the data read on the console
Thnaks in advance.
Nilotpal. (7 Replies)
Hi,
I have a file in the given format:
|aaa |hhh |fat hat chat |make sure
I need to get store in a variable,say 'error' the value of the string 'fat hat chat'
In short,
echo $error should give the result
fat hat chat
Is this possible using awk?
Also, can this be split.For... (10 Replies)
Hi All,
I need some help with arrays. I need to take input from the user for hostname, username and password until he enters .(dot) or any other character and store the values in the variable array.
I would further connect to the hostname using username and passwd and copy files from server to... (7 Replies)
hi
this is an example of code:
use strict;
use warnings;
open FILE, "/tmp/result_2";
my $regex="\\ Starting program ver. (.*)";
my $res="Program started, version <$1> - OK.\n";
while (<FILE>) {
if ($_ =~ /($regex)/) {
print "$res";
}
}
close FILE;
This finds $regex and print... (3 Replies)
Hi all,
Currently, i have a log file seperated by 'tab' and each record starting with a new line. i managed to retrieve the column that i'm interested in. (source_ip_address: xxx.xxx.xxx.xxx).
example of awk output: '{ print $43 }' assuming the field is at column 43.
10.10.10.10... (4 Replies)
File having data in following format :
file name : file.txt
--------------------
111111;name1
222222;name2
333333;name3
I want to read this file so that I can split these into two paramaters i.e. 111111 & name1 into two different variables(say value1 & value2).
i.e val1=11111 &... (2 Replies)
I need to know how to store output from one command so that it can initiate another command.
chktraf -s | cut -c1-4
output would look like
321
142
256
342
123
Then if the value of the output = 0, then initiate next command.
if
then
for xx in 01 02 03 04 05 06 07 08 09 10
do
... (4 Replies)
Requirement 1) I need to execute 15 SQL queries in oracle through linux script. All these query results needs to be stored in array variables.
Requirement 2) And these 15 queries needs to be executed in parallel.
Requirement 3) Once all the queries executed then the shell script should... (3 Replies)
Hello all!
I'm pretty new to bash scripting, so this should be a pretty easy question to solve.
For the last few hours, I've been creating a script that will list some of the following (based on a path I specify):
# of directories
# of files
# of executable files
files older than 365... (2 Replies)
Discussion started by: alphekka
2 Replies
LEARN ABOUT CENTOS
ldns_rdf_size
ldns(3) Library Functions Manual ldns(3)NAME
ldns_rdf_size, ldns_rdf_get_type, ldns_rdf_data, ldns_rdf_compare
SYNOPSIS
#include <stdint.h>
#include <stdbool.h>
#include <ldns/ldns.h>
size_t ldns_rdf_size(const ldns_rdf *rd);
ldns_rdf_type ldns_rdf_get_type(const ldns_rdf *rd);
uint8_t* ldns_rdf_data(const ldns_rdf *rd);
int ldns_rdf_compare(const ldns_rdf *rd1, const ldns_rdf *rd2);
DESCRIPTION
ldns_rdf_size() returns the size of the rdf.
*rd: the rdf to read from
Returns uint16_t with the size
ldns_rdf_get_type() returns the type of the rdf. We need to insert _get_ here to prevent conflict the the rdf_type TYPE.
*rd: the rdf to read from
Returns ldns_rdf_type with the type
ldns_rdf_data() returns the data of the rdf.
*rd: the rdf to read from
Returns uint8_t* pointer to the rdf's data
ldns_rdf_compare() compares two rdf's on their wire formats. (To order dnames according to rfc4034, use ldns_dname_compare)
rd1: the first one
rd2: the second one
Returns 0 if equal
Returns -1 if rd1 comes before rd2
Returns +1 if rd2 comes before rd1
AUTHOR
The ldns team at NLnet Labs. Which consists out of Jelte Jansen and Miek Gieben.
REPORTING BUGS
Please report bugs to ldns-team@nlnetlabs.nl or in our bugzilla at http://www.nlnetlabs.nl/bugs/index.html
COPYRIGHT
Copyright (c) 2004 - 2006 NLnet Labs.
Licensed under the BSD License. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
SEE ALSO
ldns_rdf. And perldoc Net::DNS, RFC1034, RFC1035, RFC4033, RFC4034 and RFC4035.
REMARKS
This manpage was automaticly generated from the ldns source code by use of Doxygen and some perl.
30 May 2006 ldns(3)