I have a file which is 5 million records. And each records has 412 fields has delimited by "|". So that makes each records to be 2923 bytes long. I wanted to extract specific records like top 100 or 2500 - 5000, 50001 - 10000 etc. from this file.
I tried using head command for top 100 records,... (1 Reply)
I am trying to cut the first 10 characters from a file only if the file has 'xyz' in field 185-188.
I tried this
cat filename | cut -c1-10
but this gives me all the records regardless of what is in field 185-188.
Is this doable ?
Thanks in advance for responses. (2 Replies)
Hi,
I am looking for a method to get column13 to column 50 data from the 1st line of a multiline reord. The records are stored in a large file and are separated by newline. sample format is
(data in red is to be extracted)
<header>
A001dfhskhfkdsh hajfhksdhfjh... (3 Replies)
Hi everyone.
I am a newbie to Linux stuff. I have this kind of problem which couldn't solve alone. I have a text file with records separated by empty lines like this:
ID: 20
Name: X
Age: 19
ID: 21
Name: Z
ID: 22
Email: xxx@yahoo.com
Name: Y
Age: 19
I want to grep records that... (4 Replies)
<Update>
I have the solution:
sed 's/\{3\}/&;&;---;4/'
The thread can be marked as solved!
</Update>
Hi There,
I'm working on a script processing some data from a website into cvs format. There is only one final problem left I can't find a solution.
I've processed my file... (0 Replies)
Hi,
I look for a awk one liner for below issue.
input file
ABC 1234 abc 12345
ABC 4567 678 XYZ
xyz ght 678
ABC 787 yyuu
ABC 789 7890 777
zxr hyip hyu
mno uii 678 776
ABC ty7 888
All lines should be started with ABC as first field. If a record has another value for 1st... (7 Replies)
Dear all, today I'm scratching my head with a simple (I believe) issue.
Working with date is quite simple, so if I Need to add some seconds to current time, I'll use:
date --date='+30 seconds' +"%Y-%m-%d %H:%M:%S"But, how to pass the value to add from a variable? I tried the following without... (2 Replies)
I have a file data_1.out which contains:
1|abc mail|mail subject|mail body
2|def mail|mail subject|def mail body
I am trying to read the variables from data_1.out and use them to print to 2 different files based on the id (first_column)
The problem is I am not able to read the file... (8 Replies)
Hi All,
I have the below text file from which I have to cut particular section starting from PTR_Security_Rpeorting.cpf to PTR_Security_Reporting_Env93_export.
Report Model............: "D:\Cognos_Publishing\tmp.a2R94KLQec"\PTR_Security_Reporting.cpf
Report Output Script....:... (4 Replies)
Hi ,
I have a requirement to read a file ( 5 fields , ~ delimited) and find the records which contain anything other than Alphabets, Numbers , comma ,space and dot . ie a-z and A-Z and 0-9 and . and " " and , in 2nd field. Once I do that i would want the result to have field1|<flag>
flag can... (2 Replies)
Discussion started by: ashwin3086
2 Replies
LEARN ABOUT OPENSOLARIS
dca
dca(7D) Devices dca(7D)NAME
dca - Crypto Accelerator device driver
SYNOPSIS
pci108e,5454@pci-slot
pci108e,5455@pci-slot
pci108e,5456@pci-slot
pci14e4,5820@pci-slot
pci14e4,5821@pci-slot
pci14e4,5822@pci-slot
DESCRIPTION
The dca device driver is a multi-threaded, loadable hardware driver supporting Sun PCI-based (pci108e,5454) cryptographic accelerators,
such as the Sun Crypto Accelerator 1000.
The dca driver requires the presence of Solaris Cryptographic Framework for applications and kernel clients to access the provided ser-
vices.
EXTENDED DESCRIPTION
The dca driver maintains the following statistics:
3desjobs Total number of jobs submitted to the device for 3DES encryption.
3desbytes Total number of bytes submitted to the device for 3DES encryption.
rsapublic Total number of jobs submitted to the device for RSA public key operations.
rsaprivate Total number of jobs submitted to the device for RSA private key operations.
dsasign Total number of jobs submitted to the device for DSA signing.
dsaverify Total number of jobs submitted to the device for DSA verification.
rngjobs Total number of jobs submitted for pure entropy generation.
rngbytes Total number of bytes of pure entropy requested from the device.
rngsha1jobs Total number of jobs submitted for entropy generation, with SHA-1 post-processing.
rngsha1bytes Total number of bytes of entropy requested from the device, with SHA-1 post-processing.
Additional statistics may be supplied for Sun support personnel, but are not useful to end users and are not documented here.
The dca driver can be configured by defining properties in /kernel/drv/dca.conf which override the default settings. The following proper-
ties are supported:
nostats Disables the generation of statistics. This property may be used to help prevent traffic analysis, but this may inhibit sup-
port personnel.
rngdirect Disables the SHA-1 post-processing of generated entropy. This may give "truer" random numbers, but it may also introduce the
risk of external biases influencing the distribution of generated random numbers.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Architecture |SPARC |
+-----------------------------+-----------------------------+
|Availability |SUNWdcar |
+-----------------------------+-----------------------------+
|Interface Stability |Unstable |
+-----------------------------+-----------------------------+
FILES
/kernel/drv/dca.conf dca configuration file
/kernel/drv/sparcv9/dca 64-bit ELF kernel driver (SPARC)
/kernel/drv/dca 32-bit ELF kernel driver (x86)
/kernel/drv/amd64/dca 64-bit ELF kernel driver (AMD64)
SEE ALSO cryptoadm(1M), kstat(1M), prtconf(1M), driver.conf(4), attributes(5)
Solaris Cryptographic Framework.
SunOS 5.11 14 Aug 2005 dca(7D)