My input file is
aaa
bbb
ccc
a1a
b1b
c1c
a2a
b2b
c2c
I want the output file to look like that:
aaa,bbb,ccc
a1a,b1b,c1c
a2a,b2b,c2c
How do I achieve this ? (8 Replies)
Hi,
I am new to ksh scripting and I have a problem.
I have a file in which I have to search for a particular pattern say 'a' then from that line I need to search for another pattern say 'b' in the previous lines and thne print the file from pattern 'b' till the end of file.
For eg:
... (2 Replies)
Hi,
I am trying to locate the occurences of certain pattern like 'Possible network disconnect' in a text file. I can get the actual lines matching the pttern using:
grep -w 'Possible network disconnect' file_name.
But I am more interested in getting the timing of these events which are... (7 Replies)
Hi guys,
i have the follow problem i need to delete 10 row before the pattern and 1 after and the pattern row itself.
file looks like:
frect 9.8438 25.8681 10.625 25
. dynprop \
(# \
(call fox_execute(__self))) \
(FOX_VAR_29 \
... (4 Replies)
Hi all,
on Solaris 10, I'd like to print a range of lines starting at pattern but also including the very first line before pattern.
the following doesn't print the range starting at pattern and going down to the end of file: cat <my file> | sed -n -e '/<pattern>{x;p;}/'
I need to include the... (1 Reply)
Hi all,
I have a text data file. My aim here is to find line called *FIELD* AV for every record and print lines after that till *FIELD* RF. But here I want first 3 to four lines for very record as well. FIELD AV is some where in between for very record. SO I am not sure how to retrieve lines in... (2 Replies)
I want to remove commands having no output. In below text file.
bash-3.2$ cat abc_do_it.txt
grpg10so>show trunk group all status
grpg11so>show trunk group all status
grpg12so>show trunk group all status
GCPKNYAIGT73IMO 1440 1345 0 0 94 0 0 INSERVICE 93% 0%... (4 Replies)
hello everyone,
im new here, and also programming with awk, sed and grep commands on linux.
In my text i have many lines with this config:
1 1 4 3 1 1 2 5
2 2 1 1 1 3 1 2
1 3 1 1 1 2 2 2
5 2 4 1
3 2 1 1 4 1 2 1
1 1 3 2 1 1 5 4
1 3 1 1... (3 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)
Discussion started by: Klasform
9 Replies
10. Post Here to Contact Site Administrators and Moderators
please remove my previous post on "Query on scp"
The approach which iam thinking will not work
Inconvenience caused regretted (0 Replies)
Discussion started by: nextStep
0 Replies
LEARN ABOUT DEBIAN
io::async::timer
IO::Async::Timer(3pm) User Contributed Perl Documentation IO::Async::Timer(3pm)NAME
"IO::Async::Timer" - base class for Notifiers that use timed delays
DESCRIPTION
This module provides a subclass of IO::Async::Notifier for implementing notifiers that use timed delays. For specific implementations, see
one of the subclasses:
o IO::Async::Timer::Absolute - event callback at a fixed future time
o IO::Async::Timer::Countdown - event callback after a fixed delay
o IO::Async::Timer::Periodic - event callback at regular intervals
CONSTRUCTOR
$timer = IO::Async::Timer->new( %args )
Constructs a particular subclass of "IO::Async::Timer" object, and returns it. This constructor is provided for backward compatibility to
older code which doesn't use the subclasses. New code should directly construct a subclass instead.
mode => STRING
The type of timer to create. Currently the only allowed mode is "countdown" but more types may be added in the future.
Once constructed, the "Timer" will need to be added to the "Loop" before it will work. It will also need to be started by the "start"
method.
METHODS
$running = $timer->is_running
Returns true if the Timer has been started, and has not yet expired, or been stopped.
$timer->start
Starts the Timer. Throws an error if it was already running.
If the Timer is not yet in a Loop, the actual start will be deferred until it is added. Once added, it will be running, and will expire at
the given duration after the time it was added.
As a convenience, $timer is returned. This may be useful for starting timers at construction time:
$loop->add( IO::Async::Timer->new( ... )->start );
$timer->stop
Stops the Timer if it is running. If it has not yet been added to the "Loop" but there is a start pending, this will cancel it.
AUTHOR
Paul Evans <leonerd@leonerd.org.uk>
perl v5.14.2 2012-10-24 IO::Async::Timer(3pm)