Hi,
I was trying to use this particular option of grep
grep -r 'Search_pattern' *
This command should ideally search all the occurrences of Search_pattern recursively within a directory & print it on shell prompt. But this command is not doing what is expected. It just displays nothin!
... (8 Replies)
Greetings everybody,
I have an IBM P520 AIX 5.3 server machine and trying to use crontab to periodically excute a script that contains a command belongs to my software (Fast/Tools SCADA software)
I added the following line after using crontab -e
01 * * * * /mypath/myscript
I have two... (3 Replies)
#! /usr/tsch
foreach f (`cat contacts.list`)
awk '{printf ($2 in a) ? ","$5 : (NR>1) ? RS $2 FS $5 : $2 FS $5; a} END{print e}' $f > $f_inter.map
end
My file: cat contacts.list is just a list of files.
I get this error:
doit_contacts2intermap.sh: Command not found.
Thanks! (1 Reply)
I'm having a hard time getting IP forwarding to work. I'll eventually have several interfaces, but all that matters for now is that two of them actually be able to IP forward. I have no network interfaces in the global zone, but both interfaces are in the same zone, Common.
The IPs I've been... (0 Replies)
awk 'BEGIN{print '1.2449'**0.5}'
awk: line 1: syntax error at or near *
can someone help me troubleshoot the above command?
i'm trying to do the square root of 1.2449. this command works on Red Hat, but for some reasonn isn't working on kubuntu (latest version).
shell is bash.
i... (3 Replies)
Hello ,
I have comma delimited file with over 20 fileds that i need to do some validations on. I have to check if certain fields are null and then write the line containing the null field into a new file and then delete the line from the current file.
Can someone tell me how i could go... (2 Replies)
Hi
I have a file:
r58778.3|SOURCES={KEY=f665931a...,fw,221-705}|ERRORS={16_1:T,30_1:T,56_1:C,57_1:T,59_1:A,101_1:A,115:-,158_1:C,186_1:A,204:-,271_1:T,305:-,350_1:C,368_1:G,442_1:C,472_1:G,477_1:A}|SOURCE_1="Contig_1092402550638"(f665931a359e36cea0976db191ff60ff09cc816e)
I want to retain... (15 Replies)
X Window isn't working.
When I ran startx I got an error message as shown in file attachment xwndow.png
Accordingly, I removed /tmp/.X0-lock as reflecting in the attchment.
Then again I ran the command and 2 more commands (shown in the attachment xwndow1.png) but they failed too.
Any... (2 Replies)
When I run the below bash I get the expected output, which is the sum of all matching targets less than 20 in $file1. The filename in the directory is fixed (in bold).
for file1 in /home/cmccabe/Desktop/test/panel/reads/16-0000_EPIL70.txt ; do
bname=`basename $file1`
... (3 Replies)
Discussion started by: cmccabe
3 Replies
LEARN ABOUT NETBSD
prop_data_copy
PROP_DATA(3) BSD Library Functions Manual PROP_DATA(3)NAME
prop_data, prop_data_create_data, prop_data_create_data_nocopy, prop_data_copy, prop_data_size, prop_data_data, prop_data_data_nocopy,
prop_data_equals, prop_data_equals_data -- opaque data value property object
LIBRARY
Property Container Object Library (libprop, -lprop)
SYNOPSIS
#include <prop/proplib.h>
prop_data_t
prop_data_create_data(const void *blob, size_t len);
prop_data_t
prop_data_create_data_nocopy(const void *blob, size_t len);
prop_data_t
prop_data_copy(prop_data_t data);
size_t
prop_data_size(prop_data_t data);
void *
prop_data_data(prop_data_t data);
const void *
prop_data_data_nocopy(prop_data_t data);
bool
prop_data_equals(prop_data_t dat1, prop_data_t dat2);
bool
prop_data_equals_data(prop_data_t data, const void *blob, size_t len);
DESCRIPTION
The prop_data family of functions operate on an opaque data value property object type.
prop_data_create_data(const void *blob, size_t len)
Create a data object that contains a copy of blob with size len. Returns NULL on failure.
prop_data_create_data_nocopy(const void *blob, size_t len)
Create a data object that contains a reference to blob with size len. Returns NULL on failure.
prop_data_copy(prop_data_t data)
Copy a data object. If the data object being copied is an external data reference, then the copy also references the same external
data. Returns NULL on failure.
prop_data_size(prop_data_t data)
Returns the size of the data object. If the supplied object isn't a data object, zero is returned.
prop_data_data(prop_data_t data)
Returns a copy of the data object's contents. The caller is responsible for freeing the returned buffer. If the supplied object
isn't a data object or if the data container is empty, NULL is returned.
In user space, the buffer is allocated using malloc(3). In the kernel, the buffer is allocated using malloc(9) using the malloc type
M_TEMP.
prop_data_data_nocopy(prop_data_t data)
Returns an immutable reference to the contents of the data object. If the supplied object isn't a data object, NULL is returned.
prop_data_equals(prop_data_t dat1, prop_data_t dat2)
Returns true if the two data objects are equivalent. If at least one of the supplied objects isn't a data object, false is returned.
prop_data_equals_data(prop_data_t data, const void *blob, size_t len)
Returns true if the data object's value is equivalent to blob with size len. If the supplied object isn't a data object, false is
returned.
SEE ALSO prop_array(3), prop_bool(3), prop_dictionary(3), prop_number(3), prop_object(3), prop_string(3), proplib(3)HISTORY
The proplib property container object library first appeared in NetBSD 4.0.
BSD April 22, 2006 BSD