Hi
It is possible with sed to print a pattern within a line matching regexp?
So, the line looks like : 19:00:00 blablablabla jobid 2345 <2>
the regexp is "jobid 2345" and the pattern is 56434.
That the code for find... (2 Replies)
Dear Experts,
I have many alarms appeared in a file twice, i want to grep them with this info EVTTIME & DOMAIN, and print them in second file with 1 occurance.
I have tried uniq -d test.txt > newfile and awk '!arr++' test.txt > newfile both are not working
Please help me with this!!!
... (1 Reply)
Hi :),
I am using the script to search "MYPATTERN" in MYFILE and print that block of lines containing the pattern starting with HEADER upto FOOTER.
But my problem is that at some occurrence my footer is different e.g. ";". How to modify the script so that MYPATTERN between HEADER and different... (1 Reply)
Dear Experts,
I have file called file1 in which i am greping a pattern after that i want to next 3 lines when that pattern is matched.
Ex:- file1
USA
UK
India
Africa
Hello
Asia
Europe
Australia
Hello
Peter
Robert
Jo
i want to next 3 lines after matching Hello... (12 Replies)
Hi all,
I want to search for strings in file1 that can be found in file2 and print out the whole line when matching pattern is found.
I have used the below command, but this is not working for me, because it is writing out only the matching patterns from file2, not the whole line.
fgrep -o... (2 Replies)
'Hi
I'm using the following code to extract the lines(and redirect them to a txt file) after the pattern match. But the output is inclusive of the line with pattern match.
Which option is to be used to exclude the line containing the pattern?
sed -n '/Conn.*User/,$p' > consumers.txt (11 Replies)
The intended result should be :
PDF converters
'empty line'
gpdftext and pdftotext?xml version="1.0"?>
xml:space="preserve"><note-content version="0.1" xmlns:/tomboy/link" xmlns:size="http://beatniksoftware.com/tomboy/size">PDF converters
gpdftext and pdftotext</note-content>... (9 Replies)
How to a first 3 lines lines that matches 1st pattern and 1 line that matches 2nd line.
Sample.txt
Line 1: /*--- ABC_BA_ABCABC -----*/
Line 2:
Line 3: insert_job: ABC_BA_ABCABC job_type: BOX
Line 4: blah blah
Line 5: max_run_alarm: 5
Line 6: blah blah
----
-----
Line 20: /*---... (4 Replies)
Discussion started by: bobbygsk
4 Replies
LEARN ABOUT DEBIAN
ltpcli
LTPCLI(1) BP executables LTPCLI(1)NAME
ltpcli - LTP-based BP convergence layer input task
SYNOPSIS
ltpcli local_node_nbr
DESCRIPTION
ltpcli is a background "daemon" task that receives LTP data transmission blocks, extracts bundles from the received blocks, and passes them
to the bundle protocol agent on the local ION node.
ltpcli is spawned automatically by bpadmin in response to the 's' (START) command that starts operation of the Bundle Protocol; the text of
the command that is used to spawn the task must be provided at the time the "ltp" convergence layer protocol is added to the BP database.
The convergence layer input task is terminated by bpadmin in response to an 'x' (STOP) command. ltpcli can also be spawned and terminated
in response to START and STOP commands that pertain specifically to the LTP convergence layer protocol.
EXIT STATUS
0 ltpcli terminated normally, for reasons noted in the ion.log file. If this termination was not commanded, investigate and solve the
problem identified in the log file and use bpadmin to restart ltpcli.
1 ltpcli terminated abnormally, for reasons noted in the ion.log file. Investigate and solve the problem identified in the log file,
then use bpadmin to restart ltpcli.
FILES
No configuration files are needed.
ENVIRONMENT
No environment variables apply.
DIAGNOSTICS
The following diagnostics may be issued to the ion.log log file:
ltpcli can't attach to BP.
bpadmin has not yet initialized Bundle Protocol operations.
No such ltp duct.
No LTP induct matching local_node_nbr has been added to the BP database. Use bpadmin to stop the LTP convergence-layer protocol, add
the induct, and then restart the LTP protocol.
CLI task is already started for this duct.
Redundant initiation of ltpcli.
ltpcli can't initialize LTP.
ltpadmin has not yet initialized LTP operations.
ltpcli can't open client access.
Another task has already opened the client service for BP over LTP.
ltpcli can't create receiver thread
Operating system error. Check errtext, correct problem, and restart LTP.
BUGS
Report bugs to <ion-bugs@korgano.eecs.ohiou.edu>
SEE ALSO bpadmin(1), bprc(5), ltpadmin(1), ltprc(5), ltpclo(1)perl v5.14.2 2012-05-25 LTPCLI(1)