05-14-2010
thanks for giving it a shot, but it did not work as expected.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I am trying to grep for the following type of string from a document given below:
12637 1239 3356 12956 7004 7004 7004 13381 13381
*> 12.0.1.63 0 7018 21872 ?
* 208.51.134.254 53 0 3549 7018 21872 ?... (1 Reply)
Discussion started by: Legend986
1 Replies
2. Shell Programming and Scripting
How do I write a regular expression to capture the comments of Pascal which are usually delimted by (* and *) or { and }? And also I need a regular expression to express financial quantities in American Notation. They have a leading dollar sign and an optional string of asteriks,a string of decimal... (1 Reply)
Discussion started by: saikrishnan7
1 Replies
3. Shell Programming and Scripting
I would like to search strings composed by only one type of charachter for example
only strings composed by the charachter 'b'
is it right?
$egrep '\<(b+)+\>' filename
Could be there some side effects?
Regards. (1 Reply)
Discussion started by: and77
1 Replies
4. Shell Programming and Scripting
I am having trouble parsing rpm filenames in a shell script.. I found a snippet of perl code that will perform the task but I really don't have time to rewrite the entire script in perl. I cannot for the life of me convert this code into something sed-friendly:
if ($rpm =~ /(*)-(*)-(*)\.(.*)/)... (1 Reply)
Discussion started by: suntzu
1 Replies
5. Shell Programming and Scripting
Hi Experts,
I am using ls with regex in the below manner:
VAR="*.txt *.TXT"
ls -l $VAR
This is working fine if I have both txt and TXT extension files in my directory. But if any of them is not present, its throwing errors, that *.TXT file not found in the directory. So what am i missing... (6 Replies)
Discussion started by: sugarcane
6 Replies
6. UNIX for Dummies Questions & Answers
I have a file of protein sequences with headers (my source file). Based on a list of IDs (which are included in some of the headers), I'd like to print out only the specified sequences, with only the ID as header.
In other words, I'd like to search source.txt for the terms in IDs.txt, and print... (3 Replies)
Discussion started by: pathunkathunk
3 Replies
7. Shell Programming and Scripting
i have a file 1.txt. the file contains:
* server1.com : ewf,wefwef,wef,wef
-------------------------------------
* server2.com : ewf,wefwef,wef,wef
-------------------------------------
* server3.com : ewf,wefwef,wef,wef
-------------------------------------
how can i read * ? from the... (2 Replies)
Discussion started by: zigizag
2 Replies
8. Shell Programming and Scripting
I am not a big expert in regex and have just little understanding of that language.
Could you help me to understand the regular Perl expression:
^(?!if\b|else\b|while\b|)(?:+?\s+){1,6}(+\s*)\(*\) *?(?:^*;?+){0,10}\{
------
This is regex to select functions from a C/C++ source and defined in... (2 Replies)
Discussion started by: alex_5161
2 Replies
9. Shell Programming and Scripting
I'm trying to get some exclusions into our sendmail regular expression for the K command. The following configuration & regex works:
LOCAL_CONFIG
#
Kcheckaddress regex -a@MATCH
+<@+?\.++?\.(us|info|to|br|bid|cn|ru)
LOCAL_RULESETS
SLocal_check_mail
# check address against various regex... (0 Replies)
Discussion started by: RobbieTheK
0 Replies
10. Programming
I dabbled with regex a few years back and failed miserably.
I am trying to do two things, and dont know where to start. Heres my examples
1) Code Code CODERS
should be
Code Code Coders
2) Code Code CODERSFunny
should be (3 Replies)
Discussion started by: jeffs42885
3 Replies
LEARN ABOUT FREEBSD
attimer
ATTIMER(4) BSD Kernel Interfaces Manual ATTIMER(4)
NAME
attimer -- i8254 Programmable Interval Timer (AT Timer) driver
SYNOPSIS
This driver is a mandatory part of x86 kernels.
The following tunables are settable from the loader(8):
hint.attimer.X.clock
controls support for the event timer functionality. Setting this value to 0 disables it. The default value is 1.
hint.attimer.X.timecounter
controls support for the time counter functionality. Setting this value to 0 disables it. The default value is 1.
hw.i8254.freq
allows overriding the default counter frequency. The same value is also available at run-time via the machdep.i8254_freq sysctl.
DESCRIPTION
This driver uses i8254 Programmable Interval Timer (AT Timer) hardware to supply the kernel with one timecounter and one event timer, and to
generate sound tones for the system speaker. This hardware includes three channels. Each channel includes a 16 bit counter which decreases
with a known, platform-dependent frequency. Counters can operate in several different modes, including periodic and one-shot. The output of
each channel has platform-defined wiring: one channel is wired to the interrupt controller and may be used as event timer, one channel is
wired to the speaker and used to generate sound tones, and one timer is reserved for platform purposes.
The attimer driver uses a single hardware channel to provide both time counter and event timer functionality. To make this possible, the
respective counter must be running in periodic mode. As a result, the one-shot event timer mode is supported only when time counter func-
tionality is disabled.
The event timer provided by the driver is irrelevant to CPU power states.
SEE ALSO
apic(4), atrtc(4), eventtimers(4), hpet(4), timecounters(4)
BSD
May 26, 2014 BSD