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 MOJAVE
ataraid
ATARAID(4) BSD Kernel Interfaces Manual ATARAID(4)NAME
ataraid -- ATA software RAID support
SYNOPSIS
device ata
device ataraid
DESCRIPTION
The ataraid driver provides support for so-called software RAID (sometimes referred to as fake RAID or pseudo RAID).
When a controller that supports software RAID is instructed to create a RAID array, its BIOS writes data structures in a specific metadata
format to the disks. These data structures are picked up by the ataraid driver, so that FreeBSD can work with the array. The ataraid driver
has to understand the specific metadata format of a controller BIOS in order to support its RAID capabilities.
Read-only support for a metadata format means that FreeBSD can use the given RAID array for normal read/write operations. Creation and
rebuild of such arrays has to be done from the controller BIOS.
Read and write support for a metadata format means that FreeBSD can use the given RAID array for normal read/write operations. Additionally,
the atacontrol(8) utility can be used to create, rebuild, update and fail such RAID arrays.
The ataraid driver can read the following metadata formats:
o Adaptec HostRAID
o Highpoint V2 RocketRAID
o Highpoint V3 RocketRAID
o Intel MatrixRAID
o Integrated Technology Express (ITE)
o JMicron
o LSI Logic V2 MegaRAID
o LSI Logic V3 MegaRAID
o NVIDIA MediaShield
o Promise FastTrak
o Silicon Image Medley
o Silicon Integrated Systems (SiS)
o VIA Tech V-RAID
o FreeBSD PseudoRAID
The ataraid driver can write the following metadata formats:
o Highpoint V2 RocketRAID
o Intel MatrixRAID
o JMicron
o Promise FastTrak
o Silicon Integrated Systems (SiS)
o VIA Tech V-RAID
o FreeBSD PseudoRAID
It is also possible to use software RAID on controllers that do not have special software RAID capabilities. See atacontrol(8) for details.
FILES
/dev/ar* ATA RAID device nodes
SEE ALSO ata(4), atacontrol(8)CAVEATS
RAID5 is not supported at this time. Code exists, but it neither uses nor maintains parity information.
AUTHORS
The ataraid driver was written by Soren Schmidt <sos@FreeBSD.org>. This manual page was written by Christian Brueffer
<brueffer@FreeBSD.org>.
BSD February 17, 2006 BSD