You have two files to compare by searching keyword from one file into another file
File A
23 >pp_ANSWER
24 >aa hello
25 >jau head wear
66 >jss oops
872 >aqq olps ploww oww sss
722 >GG_KILLER
..... large files
File B
Beta done
KILLER
John Mayor
calix meyers
... (5 Replies)
Hi,
I have a file which got only one column and got some keywords. I have another file where the keywords used in the first file are repeated in the second file.
Now I would like to know how many times each keyword from the first file is repeated in the second file.
Request your help on... (1 Reply)
Hi Guys,
I need to read a file until I find a blank line. and in the next iteration I want to continue reading from the line I find a keyword.
For ex: my file looks like
PDS_JOB_ALIAS
CRITERIA_ITEM_TYPE
PDS_JOB_CRITERIA_ITEM
CRITERIA_ITEM_TYPE
First I want to read the file... (2 Replies)
Hi,
In short : I have several log files and I need to find the last file with a certain keyword in it.
# ls -1tr logs
log_hostX.Jan01_0100.gz
log_hostX.Jan01_0105.gz
log_hostX.Jan01_0110.gz
log_hostX.Jan01_0115.gz
log_hostX.Jan01_0120.gz
log_hostX.Jan01_0125.gz
log_hostX.Jan01_0130.gz... (2 Replies)
Hi
I want to implement something like this:
if( keyword1 exists)
then
check if(keyword2 exists in the same line)
then replace keyword 2 with New_Keyword
else
Add New_Keyword at the end of line
end if
eg:
Check for Keyword JUNGLE and add/replace... (7 Replies)
I have input file as below I need to check for a pattern and if it is there in file then I need to print all the lines below BEGIN and END keyword. Could you please help me how to get this in AIX using sed or awk.
Input file:
ABC
******** BEGIN *****
My name is Amit.
I am learning unix.... (8 Replies)
I need to find a file and print its contents
I am trying but it is not working
find -path /opt/app-root/src/.npm/_logs -type f -name "*.log" -print
Version
$ bash -version
GNU bash, version 4.4.12(1)-release (x86_64-pc-msys) (1 Reply)
I have a content.xls file as given below,
NC_020815.1 1891831 1894692 virb4_A0A0H2X8Z4_ 1 954 1945
NC_020815.1 1883937 1886123 vird4_A0A0P9KA26_ 1 729 1379
NC_020815.1 2976151 2974985 virb10_H8FLU5_Ba 1 393 478
NC_020815.1 2968797 2967745 virb6_A0A0Q5GCZ4 5 398 499... (2 Replies)
Discussion started by: dineshkumarsrk
2 Replies
LEARN ABOUT CENTOS
lcp_readpol
LCP_READPOL(8) User Manuals LCP_READPOL(8)NAME
lcp_readpol - read the contents of an LCP policy index
SYNOPSIS
lcp_readpol -i index-value [-f policy-file] [-s size] [-p passwd] [-h]
DESCRIPTION
lcp_readpol is used to read the contents of an LCP policy index. Any index can be specified but the output will be parsed as if it con-
tained a policy.
OPTIONS -i index-value
Designate the index for reading. Index can be UINT32 or string. 3 strings are supported for the reserved LCP indices. Strings and
default index values for each string are:
default
0x50000001(INDEX_LCP_DEF)
owner 0x40000001(INDEX_LCP_OWN)
aux 0x50000002(INDEX_LCP_AUX)
-f policy-file
File name to write the policy data to. If no file name is specified then the contents will be displayed.
-s size
Value size to read from NV store. If no size inputted, read by length as this index defined.
-p password
The TPM owner password
-h Print out the help message
EXAMPLES
lcp_readpol -i default -f policy-file
lcp_readpol -i 0x00011101 -s 10
lcp_readpol -i 0x00011101 -f policy-file -p 123456
SEE ALSO lcp_writepol(8), lcp_crtpol(8).
tboot 2011-12-31 LCP_READPOL(8)