07-16-2008
Yeah, forgot to mention that I tried the [1-22] and it didn't work for me either. I am on a SunOS 5.10.
The sort command works, thanks for that. Unfortunately I will have to eventually parse very large syslog files and I imagine that's not so efficient and fast
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
if the column1 and 2 in both files has same key (for example "a" and "a1") compare each first key value(a1 of a) of input2 (for example 1-4 or 65-69 not 70-100 or 44-40 etc) with all the values in input1.
if the range of first key value in input2 is outof range in input1 values named it as out... (54 Replies)
Discussion started by: repinementer
54 Replies
2. Shell Programming and Scripting
Hi Everyone,
Here's a snippet of my data:
File 1 = testRef2:
A1BG - 13208 13284
AAA1 - 34758475 34873943
AAAS - 53701240 53715412File 2 = 42MLN.3.bedS2:
13208
13208
13360
13363
13484
13518
13518My awk script:
awk 'NR == FNR{a=$1;next} {$1>=a}{$1<=a}{print... (5 Replies)
Discussion started by: heecha
5 Replies
3. Shell Programming and Scripting
Hello,
I have a text file with lines that look like this:
1974 12 27 -0.72743 -1.0169 2 1.25029
1974 12 28 -0.4958 -0.72926 2 0.881839
1974 12 29 -0.26331 -0.53426 2 0.595623
1974 12 30 7.71432E-02 -0.71887 3 0.723001
1974 12 31 0.187789 -1.07114 3 1.08748
1975 1 1 0.349933 -1.02217... (2 Replies)
Discussion started by: meridionaljet
2 Replies
4. Shell Programming and Scripting
Hi,
I'm trying to match a filename that could be called anything from vout001 to vout252 and was trying to do a small test but I'm not getting the result I thought I would..
Can some one tell me what I'm doing wrong?
*****@********>echo $mynumber ... (4 Replies)
Discussion started by: Jazmania
4 Replies
5. UNIX for Dummies Questions & Answers
Hi,
I have log file which rolls out every second which is as this.
HttpGenRequest - -<!--OXi dbPublish--> <created="2014-03-24 23:45:37" lastMsgId="" requestTime="0.0333"> <response request="getOutcomeDetails" code="114" message="Request found no matching data" debug="" provider="undefined"/>... (3 Replies)
Discussion started by: karthikprakash
3 Replies
6. Shell Programming and Scripting
I am trying to create a script that will use the position in column A ($1) in 48850.txt and search for it in columns B ($2) in gene.txt. Then when it finds a match it copies the text in column A ($1) and places it in column C ($3) of 48850.txt. I have attached the files. Thank you :).
The... (2 Replies)
Discussion started by: cmccabe
2 Replies
7. Shell Programming and Scripting
In the files attached, I am trying to:
if Files.txt $1 is in the range of Exons.txt $1, then in Files.txt $4 the value from Exons.txt $3 is copied else if no match is found Exons.txt $3 = "Intron"
For example, the first value in File.txt $1 is chr1:14895-14944 and is not found in any range... (4 Replies)
Discussion started by: cmccabe
4 Replies
8. UNIX for Dummies Questions & Answers
Hi,
I have logfile like this..
=== 2014-02-09 15:46:59,936 INFO RequestContext - URL: '/eyisp/sc/skins/EY/images/pickers/comboBoxPicker_Over.png', User-Agent: 'Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko': Unsupported with Accept-Encoding header
=== 2015-02-09... (8 Replies)
Discussion started by: kishk
8 Replies
9. Shell Programming and Scripting
I am trying to use awk to match the NM_ in file with $1 of id which is tab-delimited. The NM_ will always be in the line of file that starts with > and be after the second _. When there is a match between each NM_ and id, then the value of $2 in id is substituted or used to update the NM_. Each NM_... (3 Replies)
Discussion started by: cmccabe
3 Replies
10. Shell Programming and Scripting
Input: START
OS:: UNIX
Release: xxx
Version: xxx
END
START
OS:: LINUX
Release: xxx
Version: xxx
END
START
OS:: Windows
Release: xxx
Version: xxx
ENDHere i am trying to get all the information between START and END, only if i could match OS Type.
I can get all the data between the... (3 Replies)
Discussion started by: Dharmaraja
3 Replies
LEARN ABOUT DEBIAN
anyevent::loop
AnyEvent::Loop(3pm) User Contributed Perl Documentation AnyEvent::Loop(3pm)
NAME
AnyEvent::Loop - AnyEvent's Pure-Perl event loop
SYNOPSIS
use AnyEvent;
# use AnyEvent::Loop;
# this module gets loaded automatically when no other loop can be found
# Explicit use:
use AnyEvent::Loop;
use AnyEvent;
...
AnyEvent::Loop::run; # run the event loop
DESCRIPTION
This module provides an event loop for AnyEvent in case no other event loop could be found or loaded. You don't have to do anything to make
it work with AnyEvent except by possibly loading it before creating the first AnyEvent watcher.
This module is not some loop abstracion used by AnyEvent, but just another event loop like EV or Glib, just written in pure perl and
delivered with AnyEvent, so AnyEvent always works, even in the absence of any other backend.
If you want to use this module instead of autoloading a potentially better event loop you can simply load it (and no other event loops)
before creating the first watcher.
As for performance, this module is on par with (and usually faster than) most select/poll-based C event modules such as Event or Glib (it
does not even come close to EV, though), with respect to I/O watchers. Timers are handled less optimally, but for many common tasks, it is
still on par with event loops written in C.
This event loop has been optimised for the following use cases:
monotonic clock is available
This module will use the POSIX monotonic clock option (if it can be detected at runtime) or the POSIX "times" function (if the
resolution is at least 100Hz), in which case it will not suffer adversely from time jumps.
If no monotonic clock is available, this module will not attempt to correct for time jumps in any way.
The clock chosen will be reported if the environment variable $PERL_ANYEVENT_VERBOSE is set to 8 or higher.
any number of watchers on one fd
Supporting a large number of watchers per fd is purely a dirty benchmark optimisation not relevant in practise. The more common case of
having one watcher per fd/poll combo is special-cased, however, and therefore fast, too.
relatively few active fds per "select" call
This module expects that only a tiny amount of fds is active at any one time. This is relatively typical of larger servers (but not the
case where "select" traditionally is fast), at the expense of the "dense activity case" where most of the fds are active (which suits
"select").
The optimal implementation of the "dense" case is not much faster, though, so the module should behave very well in most cases, subject
to the bad scalability of "select" in the presence of a large number of inactive file descriptors.
lots of timer changes/iteration, or none at all
This module sorts the timer list using perl's "sort", even though a total ordering is not required for timers internally.
This sorting is expensive, but means sorting can be avoided unless the timer list has changed in a way that requires a new sort.
This means that adding lots of timers is very efficient, as well as not changing the timers. Advancing timers (e.g. recreating a
timeout watcher on activity) is also relatively efficient, for example, if you have a large number of timeout watchers that time out
after 10 seconds, then the timer list will be sorted only once every 10 seconds.
This should not have much of an impact unless you have hundreds or thousands of timers, though, or your timers have very small
timeouts.
FUNCTIONS
The only user-visible functions provided by this module loop related - watchers are created via the normal AnyEvent mechanisms.
AnyEvent::Loop::run
Run the event loop, usually the last thing done in the main program when you want to use the pure-perl backend.
AnyEvent::Loop::one_event
Blocks until at least one new event has been received by the operating system, whether or not it was AnyEvent-related.
SEE ALSO
AnyEvent.
AUTHOR
Marc Lehmann <schmorp@schmorp.de>
http://anyevent.schmorp.de
perl v5.14.2 2012-04-08 AnyEvent::Loop(3pm)