##there can be one or more space after 2012-06-19 in the above file
i want to replace val1 with a with value passed through a variable...
below is the command i tried
ie, the whole line in the sample file is replaced (the date is removed) but i want only the param1 val1 to be replaced with the parval variable value
can anyone help me with a suitable sed command for this requirement
Hi,
I want to change a particular string in a file with another string. This is part of a larger script file. I m using SED for this purpose:
sed -e 's/hostname.domainname/${HOST}.${DOMAIN}/g' $sed_file>$tmp_file
Where the occurance hostname.domainname has to be replaced with the... (4 Replies)
Okay, title is kind of confusion, but basically, I have a lot of scripts on a server that I need to replace a ps command, however, the new ps command I'm trying to replace the current one with pipes to sed at one point. So now I am attempting to create another script that replaces that line.
... (1 Reply)
my script:
amount1=`tail /tmp/file1.txt`
amount2=`tail /tmp/file2.txt`
sed -e 's/'${amount2}'/'${amount1}'/g' filename1 > filename2
what did i do wrong ? i just want to replace amount1 with amount2 value. (2 Replies)
Hi,
i am following content in file
cat file
Install Installation-path variable
Now i need to replace Installation-path with some text to be provided as argument in csh script invocation
My question is , can i replace this by only using path
eg.
sed "s/path/$1" file
but it... (1 Reply)
I'm trying to change a "." in a file name with a "_"
I have tried;
sed -e 's/./_/g'
However this then replaces the entire filename with a load of "_"
For example;
ls /usr/local/feed/service/customers/test1/configs/test1.httpsend | awk -F/ '{print $9}' | tr "" "" | sed -e "s/./_/g"
... (2 Replies)
Hello,
I have a comman separated file lets day data.txt in following format
,:000002 CH XIN9I.INDX, 34.7534909645,:000002 CH,:Index XIN9I.INDX
,:000063 CH XIN9I.INDX, 6.3062924781,:000063 CH,:Index XIN9I.INDX
,:000776 CH XIN9I.INDX, 2.7001954832,:000776 CH,:Index XIN9I.INDX
I would like... (9 Replies)
Hi,
I have values in a file at Place $1 as AmericanDollar, AustralianDollar, Singapore1Dollar and so on on various rows. I want to replace Dollar with Pound for all those records where no numeric character is present in the string. Means in above mentioned values 'Singapore1Dollar' should not be... (11 Replies)
How can we empty or replace with null, following block of code (within the php quotes including the quotes) from inside a file.
*** some other data above this code
<?
#317008#
... (5 Replies)
I have a file whose output words are always like this:
aaaa
bbbb
cccc
dddd. Trying to arrange the data so that there are 2 columns such that the 1st word become the 1st column like this:
aaaa aaaa
aaaa bbbb
aaaa cccc
aaaa dddd Trying to use awk... (8 Replies)
Discussion started by: jimmyf
8 Replies
LEARN ABOUT FREEBSD
dwarf_add_fde_inst
DWARF_ADD_FDE_INST(3) BSD Library Functions Manual DWARF_ADD_FDE_INST(3)NAME
dwarf_add_fde_inst -- add a call frame instruction to a DWARF frame descriptor
LIBRARY
DWARF Access Library (libdwarf, -ldwarf)
SYNOPSIS
#include <libdwarf.h>
Dwarf_P_Fde
dwarf_add_fde_inst(Dwarf_P_Fde fde, Dwarf_Small op, Dwarf_Unsigned val1, Dwarf_Unsigned val2, Dwarf_Error *err);
DESCRIPTION
Function dwarf_add_fde_inst() adds a call frame instruction to the DWARF frame descriptor referenced by argument fde.
Argument fde should reference a frame descriptor allocated using dwarf_new_fde(3).
Argument op specifies the operator for the frame instruction. The DWARF standard defines the set of legal values for this argument.
Argument val1 specifies the first operand of the frame instruction.
Argument val2 specifies the second operand of the frame instruction.
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_fde_inst() returns the frame descriptor given in argument fde. In case of an error, function
dwarf_add_fde_inst() returns DW_DLV_BADADDR and sets the argument err.
ERRORS
Function dwarf_add_fde_inst() can fail with:
[DW_DLE_ARGUMENT] Argument fde was NULL.
[DW_DLE_FRAME_INSTR_EXEC_ERROR] The frame instruction operator specified in argument op was invalid.
[DW_DLE_MEMORY] An out of memory condition was encountered during the execution of the function.
SEE ALSO dwarf(3), dwarf_add_frame_fde(3), dwarf_add_frame_fde_b(3), dwarf_add_frame_cie(3), dwarf_fde_cfa_offset(3), dwarf_new_fde(3)
The DWARF Debugging Information Format, Version 4, http://www.dwarfstd.org/.
BSD September 26, 2011 BSD