Hi,
I'd like to grep a variable that I saved in the program.
Like
grep '0\$variable1' file1
Does someone know what's wrong with this command?
Thanks a lot! (2 Replies)
Hi all,
I am trying to do a simple thing in my mind. However I am fairly new to bash. What I need to do is create a folder for each partition on each CD, and each partition has a unique name (with spaces in it, do not ask why, it is already done :confused: ) . All CD's will show up... (2 Replies)
can i grep a variable
say i have a variable var=`hostname` and I want to make an if statement like
if grep "esp-ueh" $var;then......
how can i do this
I dont want to store this variable in a file and the grep it because my script will be used at the same time on multiple stations and then that... (9 Replies)
how can I use grep with a variable to find a value?
cat data.out
Hello World
grep "Hello World" data.out
Hello World ## Value found
I want to do something like this but can't seem to get it to work any
suggestions would be appreciated.
var="Hello World"
grep $var data.out (3 Replies)
I want to search a text in file but that file is pointing to variable.
ex:
file=there was nothing special
grep "there was nothing" $file
but its not working . Can u let me know that how we can use variable($file) in grep command.
Please use code tags (6 Replies)
I have a pattern like:
column "5" is missing
PS: the no is in double quotes.
The number usally changes, so we use a loop to grep.
grep 'column "$number" is missing' filename.txt
But it is not working....
How to solve this? (2 Replies)
Hello,
I usually search extensively and have to date found what I've needed. However, this one's got me stumped. I need to create a variable as follow. The issue however is that upon execution, it freezes. $var1 isn't always present in usage.log and this is fine but I'd like it to continue with... (6 Replies)
I've got a file that I'm trying to grep through that looks like this:
alpha1
alpha2
alpha3
beta1
beta2
gamma5
gamma6
gamma7
gamma8
gamma9
and I want the output to only contain the line with the highest value for each, so the output I want is:
alpha3
beta2
gamma9
I also need... (11 Replies)
Hi,
I am trying to grep one variable over the other variable
Example:
i=abc
j=ab
grep $j $i
I am getting this error:
The error is due to $i being variable and not file. I know I could do it by putting the value of abc in a file
and then greping it. (1 Reply)
hi
i have a file which contains some messages counters.
below is the snippet on the file.
17-05-29::22:36:21|message|231
17-05-29::22:36:31|message|222
17-05-29::22:36:41|message|213
17-05-30::22:36:51|message|221
17-05-30::22:37:01|message|227
17-05-30::22:37:11|message|207... (5 Replies)
Discussion started by: scriptor
5 Replies
LEARN ABOUT CENTOS
lcp_crtpol2
LCP_CRTPOL2(8) User Manuals LCP_CRTPOL2(8)NAME
lcp_crtpol2 - create an Intel(R) TXT policy (and policy data file)
SYNOPSIS
lcp_crtpol2 COMMAND [OPTION]
DESCRIPTION
lcp_crtpol2 is used to create an Intel(R) TXT policy (and policy data file) for platforms produced after 2008.
OPTIONS --create
Create an TXT policy. The following options are available:
--type any|list type
--pol file policy file
[--ver version] version
[--minver ver] SINITMinVersion
[--rev ctr1,ctrN] revocation values (comma separated, no spaces)
[--ctrl pol-ctrl] policy control
[--data file] policy data file
[file]... policy list files
--show Show the content of policy file or policy data file. Available options are:
[--brief] breif format output
[policy-file] policy file
[policy-data-file] policy data file
--help Print out the help message.
--verbose
Enable verbose output; can be specified with any command.
EXAMPLES
Assuming a policy list file list-unsig.lst has been created by the command lcp_crtpolist(8). The following example will create a policy
and policy data file.
lcp_crtpol2 --create --type list --pol list.pol --data list.data list-unsig.lst
SEE ALSO lcp_crtpol(8), lcp_mlehash(8), lcp_crtpolelt(8), lcp_crtpollist(8).
tboot 2011-12-31 LCP_CRTPOL2(8)