I have the below file data.txt.Using awk i want to grep all the zone data.Form the below command i can extact data upto of zone i give but i want it should print until next pattern.
instead of c=5 is it possible to give next pattern.
Hello,
I am using a if condition within my awk script and I have a problem with the search pattern.
I would like awk to find all the fields starting with 123. For now I have something like that:
awk '{for(i=1;i<9;i+=2)if($i=="123"...)print $i}' test
but that is not working as... (2 Replies)
Hi,
I have a log file which contains lines like below:
2010-07-19 07:13:19,021 ERROR system ...(text)
2010-07-19 07:22:03,427 ERROR system ...(text)
class com... (text)
2010-07-19 07:23:19,026 ERROR system ...(text)
class com... (text)
each line is a separate line... I am given the a... (14 Replies)
Dear Friends,
I have a flat file. To pick certain details we have written an awk where we are facing difficulty.
Sample of flat file.
line 1
line 2
line 3
line 4
line 5
line 6
line 7
line 8
line 9
line 10
line 11
line 12
line 13
line 14 (Matching pattern "Lkm_i-lnr:"can be... (4 Replies)
Hi All,
I am trying to find numbers with balance greater than 1 and less than equal 2 from the below file using awk
Input file
num ,bal
100199,1.708
100225,0
100226,0
100228,0.771166
100232,2
output file
100199,1.708
100232,2
I am using the following command for this... (2 Replies)
Here Is a problem I am facing with awk.
Query --> I want to search for a string in a file and print next 15 lines below the matched string.
1.We do not have GNU grep so cannot use grep -A or grep -B commands.
2. Instead of passing the search pattern as a string to awk. I want the awk to... (4 Replies)
Hello Guyz
I have been following this forum for a while and the solutions provided are super useful. I currently have a scenario where i need to search for a pattern and start searching by keeping the first pattern as a baseline
ABC
DEF
LMN
EFG
HIJ
LMN
OPQ
In the above text i need to... (8 Replies)
Want to fetch a column with multiple pattern using awk.
How to achieve the same.
Tried
cat test
address : 10.63.20.92/24
address : 10.64.22.93/24
address : 10.53.40.91/24
cat test | awk '{print $3}' |awk -F "/" '{print $1}'
10.63.20.92
10.64.22.93
10.53.40.91
Is there any... (2 Replies)
Want to search a pattern in column
using the below command which not helpful
awk -F"\|" '$1 == '"${VAR}"' {print $1,$2}' file
how to search using "==" with variable other than the below case.
awk -F"\|" '$1 ~ /'"${VAR}"'/ {print $1,$2}' file (14 Replies)
I have this fileA
TEST FILE ABC
this file contains ABC;
TEST FILE DGHT this file contains DGHT;
TEST FILE 123
this file contains ABC,
this file contains DEF,
this file contains XYZ,
this file contains KLM
;
I want to have a fileZ that has only (begin search pattern for will be... (2 Replies)
Hello,
We have wrote shell script for multiple file name search pattern.
file format: <numner>_<20180809>.txt
starting with single number and ending with 8 digits number
Command:
awk -v string="12_1234" -v serch="^+_+$" "BEGIN{ if (string ~/serch$/) print string }"
If sting matches... (4 Replies)
Discussion started by: koti_rama
4 Replies
LEARN ABOUT OPENSOLARIS
n2cp
n2cp(7d) Devices n2cp(7d)NAME
n2cp - Ultra-SPARC T2 crypto provider device driver
DESCRIPTION
The n2cp device driver is a multi-threaded, loadable hardware driver supporting hardware-assisted acceleration of the following crypto-
graphic operations, which are built into the Ultra-SPARC T2 CMT processor:
DES: CKM_DES_CBC, CKM_DES_ECB
DES3: CKM_DES3_CBC, CKM_DES3_ECB,
AES: CKM_AES_CBC, CKM_AES_ECB, CKM_AES_CTR, CKM_AES_CCM, CKM_AES_GCM
RC4: CKM_RC4
MD5: KM_MD5, CKM_MD5_HMAC, CKM_MD5_HMAC_GENERAL,
CKM_SSL3_MD5_MAC
SHA-1: CKM_SHA_1, CKM_SHA_1_HMAC,
CKM_SHA_1_HMAC_GENERAL, CKM_SSL3_SHA1_MAC
SHA-256:CKM_SHA256, CKM_SHA256_HMAC,
CKM_SHA256_HMAC_GENERAL
CONFIGURATION
You configure the n2cp driver by defining properties in the /kernel/drv/n2cp.conf which override the default settings. The following prop-
erty is supported:
nostats Disables the generation of statistics. The nostats property may be used to help prevent traffic analysis, how-
ever, this may inhibit support personnel.
CRYPTO STATISTICS
Solaris crypto drivers must implement statistics variables. The n2cp driver maintains the following statistics:
cwqXstate State (online, offline, error) of respective cryptographic engine, CWQ X.
cwqXsubmit Number of jobs submitted to CWQ X.
cwqXqfull Number of times when submitting a job that the queue for CWQ X was full.
cwqXqupdate_failure Number of submit job failures on CWQ X.
des Total number of jobs submitted to device for DES operations.
des3 Total number of jobs submitted to device for DES3 operations.
aes Total number of jobs submitted to device for AES operations.
md5 Total number of jobs submitted to device for MD5 operations.
sha1 Total number of jobs submitted to device for SHA-1 operations.
sha256 Total number of jobs submitted to device for SHA-256 operations.
md5hmac Total number of jobs submitted to device for HMAC_MD5 operations.
sha1hmac Total number of jobs submitted to device for HMAC_SHA-1 operations.
sha256hmac Total number of jobs submitted to device for HMAC_SHA-256 operations.
ssl3md5mac Total number of jobs submitted to device for SSL3_MAC_MD5 operations.
ssl3sha1mac Total number of jobs submitted to device for SSL3_MAC_SHA-1 operations.
ssl3sha256mac Total number of jobs submitted to device for SSL3_MAC_SHA-256 operations.
Note -
Additional statistics targeted for Sun support personnel are not documented in this manpage.
FILES
/kernel/drv/sparcv9/n2cp
64-bit ELF kernel driver.
/platform/sun4v/kernel/drv/n2cp.conf
Configuration file.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Architecture |SPARC |
+-----------------------------+-----------------------------+
|Availability |SUNWn2cp.v |
+-----------------------------+-----------------------------+
|Interface stability |Unstable |
+-----------------------------+-----------------------------+
SEE ALSO elfsign(1), cryptoadm(1M), kstat(1M), libpkcs11(3LIB), printers.conf(4), pkcs11_kernel(5), attributes(5)
Solaris Cryptographic Framework - Solaris Software Developer Collection
Solaris Security for Developer's Guide - Solaris Software Developer Collection
SunOS 5.11 13 Jan 2009 n2cp(7d)