Hey Guys,
Wondering if there is a way to do the following
I have a file called test.txt
abc
def
abc
abc
def
I have a pattern file called pattern.txt containing the following
abc
def
I want to do a count, but have it display the count value preceeding each line like grep -n (2 Replies)
I have a file from which I need to collect lines to another file. I know how to use 'grep' for this, but I don't know how to do when I wan't several lines after the search word, and the amount of lines I need varies from case to case.
The file I search in looks something like this:
>8534734... (9 Replies)
Hello,
How do I use grep to find a pattern in a list of file and then display 5 lines after the pattern is matched
Eg:
I want to match the string GetPresentCode in all files in a folder and then see 4 lines following this match. I am not sure if grep is what should be used to achieve. Thanks!... (3 Replies)
I have to grep on a few words in a file and then display the line containing those words and the line above it.
For ex -
File1.txt contains...
abc xyz abc
This is a test
Test successful
abc xyz abc
Just a test
Test successful
I find the words 'Test successful' in the file... (6 Replies)
Hello everyone.
I would like to know if I can use grep or zgrep to search for a particular pattern then print the x number of lines after the pattern was found.
Lets say for example a pattern was found on line 3, I wanted the output to show lines 3, 4 and 5.
Thanks! (10 Replies)
Hi,
I wanted to grep string "ERROR" and "WORNING" after last occurrence of String "Starting" only and wanted to display two lines after searched ERROR and WORNING string and one line before. I have following cronjob log file "errorlog" file and I have written the code for same in Unix as below... (17 Replies)
Hi,
Need help to grep the following from a file x. I just want to grep exact match not lines and not partial word.
CONFSUCCESS
CONFFAIL
CONFPARTIALSUCCESS
>cat x
xczxczxczc zczczcxx CONFSUCCESS czczczcczc
czxxczxzxczcczc CONFFAIL xczxczcxcczczc
zczczczcz CONFPARTIALSUCCESS czczxcxzc
... (4 Replies)
Hi I need to grep for a patter and display all lines below the pattern.
For ex: say my file has the below lines
file1
file2
file3
file4
file5
I NEED to grep for patter file3 and display all lines below the pattern. do we have an option to get this data. Let me know if you require... (5 Replies)
Hi guys,
I have a log file that generates multiple logs about a query.
<query time='2016-04-13 13:01:50.825'>
<PagingRequestHandler>
<Before>brand:vmu</Before>
<After>brand:vmu</After>
</PagingRequestHandler>
<GroupDeviceFilterHandler>
<Before>brand:vmu</Before>
... (3 Replies)
hi,
I have a log file with data for more than 3 years, i want only the rows for the year 2017, say for example.
My file has the data like this
08-OCT-2015 11:17:35 AAA, BBBB
08-OCT-2017 11:17:35 AAA,Bdfdfd,dfdfd,dfd
08-Nov-2017 11:17:35 AAA,Bdfdfd,dfdfd,deree
i want the rows... (2 Replies)
Discussion started by: skoshekay
2 Replies
LEARN ABOUT DEBIAN
aibs
AIBS(4) BSD Kernel Interfaces Manual AIBS(4)NAME
aibs -- ASUSTeK AI Booster ACPI ATK0110 voltage, temperature and fan sensor
SYNOPSIS
To compile this driver into the kernel, place the following lines in your kernel configuration file:
device acpi
device aibs
Alternatively, to load the driver as a module at boot time, place the following lines in loader.conf(5):
acpi_load="YES"
aibs_load="YES"
DESCRIPTION
The aibs driver provides support for the voltage, temperature and fan sensors available through the ATK0110 ASOC ACPI device on ASUSTeK moth-
erboards. The number of sensors of each type, as well as the description of each sensor, varies according to the motherboard.
The driver supports an arbitrary set of sensors, provides descriptions regarding what each sensor is used for, and reports the current values
as well as the supposed range specifications of each sensor's input as defined by the motherboard manufacturer through ACPI.
The range specifications are as follows:
o Voltage sensors have a lower and an upper range specification.
o Temperature sensors have two upper specifications.
o Fan sensors may either have only the lower specification, or, depending on the DSDT, one lower and one upper specification.
Sensor readings and the range specifications are made available through the sysctl(3) interface, and can be monitored with sysctl(8). For
example, on an ASUS V3-P5G965 barebone:
> sysctl dev.aibs.0.{volt,temp,fan}
dev.aibs.0.volt.0: 1192 850 1600
dev.aibs.0.volt.1: 3312 2970 3630
dev.aibs.0.volt.2: 5017 4500 5500
dev.aibs.0.volt.3: 12302 10200 13800
dev.aibs.0.temp.0: 28.0C 80.0C 95.0C
dev.aibs.0.temp.1: 55.0C 60.0C 95.0C
dev.aibs.0.fan.0: 878 600 7200
dev.aibs.0.fan.1: 0 700 7200
> sysctl -d dev.aibs.0.{volt,temp,fan}
dev.aibs.0.volt:
dev.aibs.0.volt.0: Vcore Voltage
dev.aibs.0.volt.1: +3.3 Voltage
dev.aibs.0.volt.2: +5 Voltage
dev.aibs.0.volt.3: +12 Voltage
dev.aibs.0.temp:
dev.aibs.0.temp.0: CPU Temperature
dev.aibs.0.temp.1: MB Temperature
dev.aibs.0.fan:
dev.aibs.0.fan.0: CPU FAN Speed
dev.aibs.0.fan.1: CHASSIS FAN Speed
Generally, sensors provided by the aibs driver may also be supported by certain other drivers or utilities that access the ISA / LPC or I2C /
SMBus devices directly. The precise collection of aibs sensors is comprised of the sensors specifically utilised in the motherboard design,
which may be supported through a combination of one or more physical hardware monitoring chips.
The aibs driver, however, provides the following advantages when compared to the native hardware monitoring drivers or other utilities:
o Sensor values from aibs are expected to be more reliable. For example, voltage sensors in many hardware monitoring chips can only sense
voltage from 0 to 2 or 4 volts, and the excessive voltage is removed by the resistors, which may vary with the motherboard and with the
voltage that is being sensed. In aibs, the required resistor factors are provided by the motherboard manufacturer through ACPI; in the
native drivers, the resistor factors are encoded into the driver based on the chip manufacturer's recommendations. In essence, sensor
values from aibs are very likely to be identical to the readings from the Hardware Monitor screen in the BIOS.
o Sensor descriptions from aibs are more likely to match the markings on the motherboard.
o Sensor range specifications are supported by aibs. The range specification is reported for each individual sensor as suggested by the
motherboard manufacturer. For example, the threshold for the CPU temperature sensor is likely to be significantly higher than that for
the chassis temperature sensor.
o Support for newer chips in aibs. Newer chips may miss a native driver, but should be supported through aibs regardless.
SEE ALSO sysctl(3), acpi(4), sysctl(8)HISTORY
The aibs driver first appeared in OpenBSD 4.7, DragonFly 2.5, NetBSD 6.0 and FreeBSD 9.0.
An earlier version of the driver, acpi_aiboost, first appeared in FreeBSD 7.0 and NetBSD 5.0.
AUTHORS
The aibs driver was written for OpenBSD, DragonFly, NetBSD and FreeBSD by Constantine A. Murenin <cnst@FreeBSD.org>, Raouf Boutaba Research
Group, David R. Cheriton School of Computer Science, University of Waterloo.
An earlier version of the driver, named acpi_aiboost, was written for FreeBSD by Takanori Watanabe.
BSD April 4, 2010 BSD