My String variable is holding value as - abc"def
I want to replce " with \"
I tried with awk :
echo $var | awk '{gsub(/"/,"\"");print}'
and I am getting an error, `)' is not expected. (1 Reply)
Hi guys,
i have a pattern that i am searching in a file and i want to extract some of this pattern
...
module TS1N65ULPA96X32M4 (
....
i want to extract only TS1N65ULPA96X32M4 part and i do the following
sed 's/module \(x*\).*/\1/' name_of_file
but this is not quite right.
could... (6 Replies)
Hi all
I need to replace all characters in a file except for the matching pattern
eg.
I need to replace all character with '*' except for the pattern "abc"
Input
"sdfhgsdf abc ##%$#abcsdfh sdfjkfff"
Output
"******abc******abc*************"
Request for single liner solution (1 Reply)
Hi all,
I been searching the forum for a few hours now and can't find exactly what I need to replace text between two patterns. Below is what I want to accomplish
/* Any text between these to sympols */
changed to....
/* This will be the new text to change */
..and I'm... (3 Replies)
Hi,
I have a file which contains the below data. I want to search for a pattern server="http://bushby.mis.amat.com:12440" and remove it from the file.
Please let me know how can i do this.
<Object name="reverse-proxy-/endeavour/">
ObjectType fn="http-client-config" timeout="1800"... (6 Replies)
Hi All
I am having pipe seperated inputs like
Adam|PeteR|Josh|PEter
Nick|Rave|Simon|Paul
Steve|smith|PETER|Josh
Andrew|Daniel|StAlin|peter
Rick|PETer|ADam|RAVE
i want to repleace all the occurrence of peter (in any case pattern PeteR,PEter,PETER,peter,PETer) with Peter so that output... (5 Replies)
i have little challenge, help me out.i have a file where i have a value declared and and i have to replace the value when called. for example i have the value for abc and ccc. now i have to substitute the value of
value abc and ccc in the place of them.
Input File:
go to &abc=ddd;
if... (16 Replies)
Hi,
I have a text file with lots of text (strings,numbers,special characters etc). I am trying to replace any occurrence of these strings :
90%
91%
92%
....
100%
I want to replace them with :
"90%"
"91%"
"92%"
....
"100%"
I am now using 10 sed commands for replacement but I... (12 Replies)
Discussion started by: ctrld
12 Replies
LEARN ABOUT DEBIAN
ltpcounter
LTPCOUNTER(1) LTP executables LTPCOUNTER(1)NAME
ltpcounter - LTP reception test program
SYNOPSIS
ltpcounter client_ID [max_nbr_of_bytes]
DESCRIPTION
ltpcounter uses LTP to receive service data units flagged with client service number client_ID from a remote ltpdriver client service
process. When the total number of bytes of client service data it has received exceeds max_nbr_of_bytes, it terminates and prints
reception and cancellation statistics. If max_nbr_of_bytes is omitted, the default limit is 2 billion bytes.
While receiving data, ltpcounter prints a 'v' character every 5 seconds to indicate that it is still alive.
EXIT STATUS
0 ltpcounter has terminated. Any problems encountered during operation will be noted in the ion.log log file.
1 ltpcounter was unable to start, because it could not attach to the LTP protocol on the local node or could not open access to client
service clientId.
In the former case, run ltpadmin to start LTP and try again.
In the latter case, some other client service task has already opened access to client service clientId. If no such task is currently
running (e.g., it crashed while holding the client service open), use ltpadmin to stop and restart the LTP protocol.
FILES
No configuration files are needed.
ENVIRONMENT
No environment variables apply.
DIAGNOSTICS
Diagnostic messages produced by ltpcounter are written to the ION log file ion.log.
ltpcounter can't initialize LTP.
ltpadmin has not yet initialized LTP protocol operations.
ltpcounter can't open client access.
Another task has opened access to service client clientId and has not yet relinquished it.
Can't get LTP notice.
LTP system error. Check for earlier diagnostic messages describing the cause of the error; correct problem and rerun.
BUGS
Report bugs to <ion-bugs@korgano.eecs.ohiou.edu>
SEE ALSO ltpadmin(1), ltpdriver(1), ltp(3)perl v5.14.2 2012-05-25 LTPCOUNTER(1)