I have a fixed length file in the following format
<date><product_code><other data>
The file size is huge and I have to extract only the lines that match a certain product code which is of 2 bytes length. I cannot use normal grep since that may give undesirable results. When I search for prod... (5 Replies)
Hi there,
i'm having some problems just making an awk script (i've tried this way, but other way can be posible for sure), for the next file
file.txt
<register>
<createProfile>
<result>0</result>
<description><!]></description>
<msisdn>34661461174</msisdn>
<inputOmvID>1</inputOmvID>... (6 Replies)
Hi All,
I would like to extract from a text file m lines skipping n lines after a string occurrency. Is it possible with grep?
e.g.
qqq
ww
eee
rrr
ttt
yyy
uuu
I want to print 2 lines skipping 1 line after the string 'ww'
result would be
rrr
ttt (2 Replies)
Hi All,
as the title says I need to extract N lines after match number X of a pattern.
e.g.
111
xxx
xxx
111
yyy
yyy
111
www
www
111
zzz
zzz
I would like to extract the two lines after the second 111 occurrence.
I tried with grep but I didn't find any options to do that.
Any... (11 Replies)
Hi,
I have a large, multiline log file.
I have used pcregrep to extract all entries in that log that match a particular pattern - where that pattern spans multiple lines.
However, because the log file is large, and these entries occur every few minutes, I still output a very large amount... (6 Replies)
Hi guys!
I'm new to scripting and I need to write a script in awk.
Here is example of file on which I'm working
ATOM 4688 HG1 PRO A 322 18.080 59.680 137.020 1.00 0.00
ATOM 4689 HG2 PRO A 322 18.850 61.220 137.010 1.00 0.00
ATOM 4690 CD ... (18 Replies)
Hi,
My input files is like this
axis1 0 1 10
axis2 0 1 5
axis1 1 2 -4
axis2 2 3 -3
axis1 3 4 5
axis2 3 4 -1
axis1 4 5 -6
axis2 4 5 1
Now, these are my following tasks
1. Print a first column for every two rows that has the same value followed by a string.
2. Match on the... (3 Replies)
Hello,
I would like to ask for help with csh script.
An example of an input in .txt file is below, the number of lines varies from file to file and I have 2 or 3 columns with values. I would like to read all the values (probably one by one) and set them to independent unique variables that... (7 Replies)
GM,
I have an issue at work, which requires a simple solution. But, after multiple attempts, I have not been able to hit on the code needed.
I am assuming that sed, awk or even perl could do what I need.
I have an application that adds extra blank page feeds, for multiple reports, when... (7 Replies)
Discussion started by: jxfish2
7 Replies
LEARN ABOUT NETBSD
arcmsr
ARCMSR(4) BSD Kernel Interfaces Manual ARCMSR(4)NAME
arcmsr -- Areca Technology Corporation SATA/SAS RAID controller
SYNOPSIS
arcmsr* at pci? dev ? function ?
DESCRIPTION
The arcmsr driver provides support for the PCI-X and PCI Express RAID controllers from Areca Technology Corporation:
- ARC-1110 PCI-X 4 Port SATA RAID Controller
- ARC-1110ML PCI-X 4 Port SATA RAID Controller
- ARC-1120 PCI-X 8 Port SATA RAID Controller
- ARC-1120ML PCI-X 8 Port SATA RAID Controller
- ARC-1130 PCI-X 12 Port SATA RAID Controller
- ARC-1130ML PCI-X 12 Port SATA RAID Controller
- ARC-1160 PCI-X 16 Port SATA RAID Controller
- ARC-1160ML PCI-X 16 Port SATA RAID Controller
- ARC-1170 PCI-X 24 Port SATA RAID Controller
- ARC-1200 Rev A PCI Express 2 Port SATA RAID Controller
- ARC-1202 PCI Express 2 Port SATA RAID Controller
- ARC-1210 PCI Express 4 Port SATA RAID Controller
- ARC-1220 PCI Express 8 Port SATA RAID Controller
- ARC-1230 PCI Express 12 Port SATA RAID Controller
- ARC-1230ML PCI Express 12 Port SATA RAID Controller
- ARC-1231ML PCI Express 12 Port SATA RAID Controller
- ARC-1260 PCI Express 16 Port SATA RAID Controller
- ARC-1260ML PCI Express 16 Port SATA RAID Controller
- ARC-1261ML PCI Express 16 Port SATA RAID Controller
- ARC-1280 PCI Express 24 Port SATA RAID Controller
- ARC-1280ML PCI Express 24 Port SATA RAID Controller
- ARC-1680 PCI Express 8 Port SAS RAID Controller
- ARC-1680LP PCI Express 8 Port SAS RAID Controller
- ARC-1680i PCI Express 8 Port SAS RAID Controller
- ARC-1680x PCI Express 8 Port SAS RAID Controller
- ARC-1681 PCI-X 8 Port SAS RAID Controller
These controllers support RAID levels 0, 1, 1E, 3, 5, 6, and JBOD using either SAS or SATA II drives.
arcmsr supports management and monitoring of the controller through the bioctl(8) and envstat(8) commands.
Please note, however, that to use some features that require special privileges, such as creating/removing hot-spares, pass-through disks or
RAID volumes will require to have the password disabled in the firmware; otherwise a Permission denied error will be reported by bioctl(8).
When a RAID 1 or 1+0 volume is created, either through the bioctl(8) command or controller's firmware, the volume won't be accessible until
the initialization is done. A way to get access to the sd(4) device that corresponds to that volume without rebooting, is to issue the fol-
lowing command (once the initialization is finished):
$ scsictl scsibus0 scan any any
The arcmsr driver will also report to the kernel log buffer any error that might appear when handling firmware commands, such as used by the
bioctl(8) command.
EVENTS
The arcmsr driver is able to send events to powerd(8) if a volume or any drive connected to the volume is not online. The state-changed
event will be sent to the /etc/powerd/scripts/sensor_drive script when such condition happens.
SEE ALSO intro(4), pci(4), scsi(4), sd(4), bioctl(8), envstat(8), powerd(8), scsictl(8)HISTORY
The arcmsr driver first appeared in NetBSD 5.0.
AUTHORS
The arcmsr driver was originally written for OpenBSD by David Gwynne. It was ported to NetBSD and extended by Juan Romero Pardines.
BSD March 3, 2008 BSD