03-13-2017
Thank you Don and Rubi. I am working on the solution based on your inputs. will post the code once its ready.
Thanks
Bharat
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi Friends,
How can I search all files in all slices on a unix system for a particular string within the file.
e.g search string 'oracle'
Thanks (4 Replies)
Discussion started by: sureshy
4 Replies
2. UNIX for Dummies Questions & Answers
Hi all,
Lets say I have 3 files a.txt and b.txt and c.txt.
a.txt has the following text
====================
apple is good for health
b.txt has the following text
====================
apple is pomme in french
c.txt has the following text
====================
orange has citric acid... (1 Reply)
Discussion started by: amjath78
1 Replies
3. Shell Programming and Scripting
Hello,
I want an one line command that brings me back all the files in a folder that contain 4 specific words anywhere inside them.
I want to use find,xargs and grep. for example i know for one word the command would be:
find . | xargs grep 'Word1'
But i don't know for 4 specific words... (13 Replies)
Discussion started by: WoodenSword
13 Replies
4. Shell Programming and Scripting
say I have a file named phones
in that file every line is like that
lastname^firstname^phone
how can I make a program in cshell that searches for a specific string
in phones and echos the result (if found) like that:
lastname1
firstname1
phone1
------------------
lastname2
firstname2... (8 Replies)
Discussion started by: h4wk
8 Replies
5. Shell Programming and Scripting
Hi all,
I need UNIX command that would give me all files without the string "4R" anywhere in the file. I have about a hundred files in my directory, and I need to list all files wihtout the string "4R" anywhere. Can anyone help me please? Thank you.l (4 Replies)
Discussion started by: risk_sly
4 Replies
6. UNIX for Dummies Questions & Answers
Hi Guys,
I want to search the content of all the files (of a particular type like .txt)
in a directory for a specific string pattern. Can anyone help me?
Thanks (7 Replies)
Discussion started by: mwrg
7 Replies
7. Shell Programming and Scripting
Hi I have multiple files in a folder and one file which contains a list of files (one on each line). I was to search for a string only within these files and not the whole folder. I need the output to be in the form
File1<tab>string instance 2<tab> string instance 2<tab>string instance 3... (6 Replies)
Discussion started by: pkabali
6 Replies
8. UNIX for Dummies Questions & Answers
Hi,
I have following files in a directory with '.meta' extension, which have data in follwoing patterns. i need to print data from these files in below metioned format. please provide a script for this solution.
file names:
TEST_HISTORY_MTH.meta
AB_TEST_1.meta
cat... (2 Replies)
Discussion started by: AAHinka
2 Replies
9. Shell Programming and Scripting
Hi,
I have a requirement to create a shell script(tcsh) that finds all the files in a directory having the file name containing date format "YYYYMMDDHHMM" and extract the date time part ""YYYYMMDDHHMM" for further processing.
Could you please have any idea on this.
trades_201604040000.out... (6 Replies)
Discussion started by: gopal.biswal
6 Replies
10. Shell Programming and Scripting
I have been running a program mseed2sac using the following command
cd IV
find . -type f -exec /swadmin/mseed2sac '{}' \;
The problem is that I end up with a lot of files in directory IV.
Instead I would like to select the designator HHZ, create a
directory IV.SAC and all the files output... (11 Replies)
Discussion started by: kristinu
11 Replies
LEARN ABOUT CENTOS
lcp_crtpollist
LCP_CRTPOLLIST(8) User Manuals LCP_CRTPOLLIST(8)
NAME
lcp_crtpollist - create an Intel(R) TXT policy list
SYNOPSIS
lcp_crtpollist COMMAND [OPTION]
DESCRIPTION
lcp_crtpollist is used to create an Intel(R) TXT policy list.
OPTIONS
--create
Create an TXT policy list. The following options are available:
--out file policy list file
[--ver version] version
[file]... policy element files
--sigh Sign an TXT policy list.
--pub key-file PEM file of public key
--out file policy list file
[--priv key-file] PEM file of private key
[--rev rev-ctr] revocation counter value
[--nosig] don't add SigBlock
--addsig
--sig file file containing signature (big-endian)
--out file policy list file
--show file
policy list file
--help Print out the help message.
--verbose
Enable verbose output; can be specified with any command.
EXAMPLES
Create policy list:
Assuming there have been two element file mle.elt and pconf.elt generated by lcp_crtpolelt(8) The following example can create an unsigned
policy list:
lcp_crtpollist --create --out list-unsig.lst mle.elt pconf.elt
Sign policy list:
Unsigned policy list can be signed by the command lcp_crtpollist(8) or openssl(1). The openssl(1) signing is supported for cases where the
signing environment is separate from the policy creation environment and the software allowed to run there is strictly controlled and
already supports openssl(1).
The following example uses openssl(1) to sign the list:
1 openssl rsa -pubout -in privkey.pem -out pubkey.pem
2 cp list-unsig.lst list-sig.lst
3 lcp_crtpollist --sigh --pub pubkey.pem --nosig --out list-sig.lst
4 openssl genrsa -out privkey.pem 2048
5 openssl dgst -sha1 -sign privkey.pem -out list.sig list-sig.lst
6 lcp_crtpollist --addsig --sig list.sig --out list-sig.lst
lcp_crtpollist can also be used to sigh a policy list. The following example are intended to be mutually exclusive with the preceding exam-
ple.
1 openssl genrsa -out privkey.pem 2048
2 openssl rsa -pubout -in privkey.pem -out pubkey.pem
3 cp list-unsig.lst list-sig.lst
4 lcp_crtpollist --sign --pub pubkey.pem --priv privkey.pem --out list-sig.lst
SEE ALSO
lcp_crtpol2(8), lcp_crtpolelt(8), lcp_crtpollist(8), openssl(1).
tboot 2011-12-31 LCP_CRTPOLLIST(8)