Say I have 2 files of 2 rows of 3 columns each
file1:
cat catdata1 catdata2
dog dogdata1 dogdata2
file2:
cat catdata3 catdata4
dog dogdata3 dogdata4
and I need to combine both files so that is appears like:
cat catdata1 catdata2 catdata3 catdata4
dog dogdata1 dogdata2 dogdata3... (8 Replies)
Hi,
I am having issue where I have to tail 3 log files continuously (forever) and while I am reading the files , parse them and shove the data into DB. I can do this with one file totally fine but how can I read 3 files at the same time? I am not really looking for code (but would be nice) but... (3 Replies)
Hi ,
I have a large no of files which all end in .asp.htm extension .
But for proper navigation between the pages I need to rename all those files as .asp only .
How can it be done ? (4 Replies)
Hi all,
I'm having a problem with a script which should ultimately provide a filename by reading a value from file1 and file2 then join together.
I'm planning to use a loop/ loops to get the values out of both files and create a single string unfortunately the code currently treats the second... (7 Replies)
Does anybody know how to make symbolic links for multiple files simultaneously?
Often times I need make symbolic links for multiple files with some common pattern (just like "*.jpg"). Is there a way to avoid making symbolic link for each of them one by one...
Thank you! (6 Replies)
Hello,
Is it possible to handle data from two different files at once in awk (latest version and platform is Fedora). I found on the net that we cannot nest awk. My requirement is that I have two similar files :
File 1:
Name: abc
Val = 58
Name: cdf
Val = 1;
..................
File... (7 Replies)
dear all,
i'm preparing a script which can do these actions :
1. stop remove server's certain service
2. clean the files on remote servers simultaneously (because lots of files need to be deleted)
3. after files/logs are removed, restart the service again
i'm stuck on how to clean remote... (4 Replies)
Hi,
i need a single command to create multiple empty files(no trailing lines as well) and empty the files if already existing.
please let me know or if this has been ansered, if some ocan share the link please, thanks
> newfile.txt
or
:> newfile.txt
do not work (4 Replies)
Hello Guys.
Please I would like to create empty files from a list
In file1 will be the followin values, so i will like to create for each name a empty file.
file1
2191off-r0.sps
2192off-r0.sps
2193off-r0.sps
2194off-r0.sps
2195off-r0.sps
So I need to get 5 empty files.
Thanks for... (7 Replies)
Discussion started by: jiam912
7 Replies
LEARN ABOUT FREEBSD
dwarf_add_expr_gen
DWARF_ADD_EXPR_GEN(3) BSD Library Functions Manual DWARF_ADD_EXPR_GEN(3)NAME
dwarf_add_expr_gen -- add an operator to a location expression descriptor
LIBRARY
DWARF Access Library (libdwarf, -ldwarf)
SYNOPSIS
#include <libdwarf.h>
Dwarf_Unsigned
dwarf_add_expr_gen(Dwarf_P_Expr expr, Dwarf_Small opcode, Dwarf_Unsigned val1, Dwarf_Unsigned val2, Dwarf_Error *err);
DESCRIPTION
Function dwarf_add_expr_gen() adds a location expression operator to the location expression descriptor referenced by argument expr.
Argument expr should reference a location expression descriptor allocated using the function dwarf_new_expr(3).
Argument opcode specifies the operation code of the location expression operator. Valid values for this argument are those denoted by the
DW_OP_* constants defined in <libdwarf.h>.
To generate a DW_OP_addr operation, application code should instead use dwarf_add_expr_addr_b(3).
Argument val1 specifies the first operand of the location expression operator.
Argument val2 specifies the second operand of the location expression operator.
If argument err is not NULL, it will be used to store error information in case of an error.
RETURN VALUES
On success, function dwarf_add_expr_gen() returns the size in bytes of the location expression byte stream generated. In case of an error,
function dwarf_add_expr_gen() returns DW_DLV_NOCOUNT and sets the argument err.
ERRORS
Function dwarf_add_expr_gen() can fail with:
[DW_DLE_ARGUMENT] Argument expr was NULL.
[DW_DLE_LOC_EXPR_BAD] The operation code specified in argument opcode was invalid.
[DW_DLE_MEMORY] An out of memory condition was encountered during the execution of the function.
SEE ALSO dwarf(3), dwarf_add_AT_location_expr(3), dwarf_add_expr_addr(3), dwarf_add_expr_addr_b(3), dwarf_expr_current_offset(3),
dwarf_expr_into_block(3), dwarf_new_expr(3)BSD September 9, 2011 BSD