Sample input (line feed indicated by )
---------------
The red fox jumped
over the brown fence of the
red hous
He then went into the
orchard
---------------
Desired Output
---------------
The red fox jumped over the brown fence of the red house
He then went into the orchard (11 Replies)
THIS is the output i Get i want to take out most of the banner and such and leave ------ down to ------ with fields right it doesnt seem to ouput right im not sure how to delete the $ characters because shell sees them .....
thansk
or even something that make it looks better to understand... (2 Replies)
Hello,
I'm trying to figure out how to use sed or awk to delete single lines in a file. By single, I mean lines that are not touching any other lines (just one line with white space above and below).
Example:
one
two
three
four
five
six
seven
eight
I want it to look like: (6 Replies)
Sample file:
This is line one,
this is another line,
this is the PRIMARY INDEX line
l ;
This is another line
The command should find the line with “PRIMARY INDEX” and remove the last character from the line preceding it (in this case , comma) and remove the first character from the line... (5 Replies)
Hi friends,
This is sed & awk type question.
I have a text file which has numbers spread all over the file. I want to sum the series of numbers whenever i find it and produce an output file with the sum. For example
###start of input text file ####
abc
def
ghi
1
2
3
4
kjld
random... (3 Replies)
Hi guys!
I use AWK commands under GAMS to predispose the data files to be read by GAMS.
I have a file which contains groups of data I need. Unfortunately I have the data spread in 3 rows for each subject.
Here's an example (the file is really long)
1 0 2.0956 100.00 250.00 100.00 2.0956... (4 Replies)
Dear Unix Forums,
I am hoping you can help me with a pattern matching problem.
What am I trying to do?
I want to replace multiple lines of a text file (that match a multi-line pattern) with a single line of text. These patterns can span several lines and do not always have the same number of... (10 Replies)
I have an awk statement in a ksh script that looks for a certain string then looks at each line after to find another match. The match could be the next line or second down and it works well.
nawk 'BEGIN {FS=RS;RS="!"} /interface loopback0/
{for(i=1;i<=NF; i++) if ($i ~ /ip... (5 Replies)
Hi,
I have been stuck in this requirement where my file contains the below format.
20150812170500846959990854-25383-8.0.0
"ABC Report" hp96880
"4952"
20150812170501846959990854-25383-8.0.0 End of run
20150812060132846959990854-20495-8.0.0
"XYZ Report" vg76452
"1006962188"... (6 Replies)
In the awk piped to sed below I am trying to format file by removing the odd xxxx_digits and whitespace after, then move the even xxxx_digit to the line above it and add a space between them. There may be multiple lines in file but they are in the same format. The Filename_ID line is the last line... (4 Replies)
Discussion started by: cmccabe
4 Replies
LEARN ABOUT CENTOS
tb_polgen
TB_POLGEN(8) User Manuals TB_POLGEN(8)NAME
tb_polgen - manage tboot verified launch policy
SYNOPSIS
tb_polgen COMMAND [OPTION]
DESCRIPTION
tb_polgen is used to manage tboot verified launch policy.
COMMANDS --create
Create an empty tboot verified launch policy file.
--type nonfatal | continue | halt
Nonfatal means ignoring all non-fatal errors and continuing. Continue means ignoring verification errors and halting other-
wise. Halt means halting on any errors.
[--ctrl policy-control-value]
The default value 1 is to extend policy into PCR 17.
policy-file
--add Add a module hash entry into a policy file.
--num module-number | any
The module-number is the 0-based module number corresponding to modules loaded by the bootloader.
--pcr TPM-PCR-number | none
The TPM-PCR-number is the PCR to extend the module's measurement into.
--hash any | image
[--cmdline command-line]
The command line is from grub.conf, and it should not include the module name (e.g. "/xen.gz").
[--image image-file-name]
policy-file
--del Delete a module hash entry from a policy file.
--num module-number | any
The module-number is the 0-based module number corresponding to modules loaded by the bootloader.
[--pos hash-number]
The hash-number is the 0-based index of the hash, within the list of hashes for the specified module.
policy-file
--unwrap
Extract the tboot verified launch policy from a TXT LCP element file.
--elt elt-file
policy-file
--show policy-file
Show the policy information in a policy file.
--help Print out the help message.
--verbose
Enable verbose output; can be specified with any command.
EXAMPLES
tb_polgen --create --type nonfatal vl.pol
tb_polgen --add --num 0 --pcr none --hash image --cmdline "cmdline" --image /boot/xen.gz vl.pol
tb_polgen --add --num 1 --pcr 19 --hash image --cmdline "cmdline" --image /boot/vmlinuz-2.6.18.8-xen vl.pol
tb_polgen --add --num 2 --pcr 19 --hash image --cmdline "" --image /boot/initrd-2.6.18.8-xen.img vl.pol
tb_polgen --del --num 1 vl.pol
tb_polgen --show --verbose vl.pol
Note1:
It is not necessary to specify a PCR for module 0, since this module's measurement will always be extended to PCR 18. If a PCR is speci-
fied, then the measurement will be extended to that PCR in addition to PCR 18.
Note2:
--unwrap is not implemented correctly. There should be a defined UUID for this and that should be checked before copying the data. There
should be a wrap or similar command to generates an element file for a policy.
SEE ALSO lcp_crtpol(8), lcp_crtpol2(8), lcp_crtpolelt(8).
tboot 2011-12-31 TB_POLGEN(8)