the "1" is just short form to print. you can write this way
when you posted your sample, you didn't include those metadata. next time, give as much information as close to your actual input as possible. So , again, what's really your final output?
Hi All,
I'm trying to write a ksh script to parse a file. When the "\" character is encountered, it should be removed and the next line should be concatenated with the current line. For example...
this is a test
line #1\
should be concatenated with line #2\
and line number 3
when this... (3 Replies)
Hi,
My input has much more lines, but few of them are below
pin(IDF) {
direction : input;
drc_pinsigtype : signal;
pin(SELDIV6) {
direction : input;
drc_pinsigtype : ... (3 Replies)
Good afternoon all,
I'm hoping my newbie question can help bolster someone's street_cred.sh today.
I'm trying to "fingerprint" SQL on its way into the rdbms for a benchmarking process (so I can tie the resource allocation back to the process more precisely).
To do this, I'm essentially... (4 Replies)
Hello everyone
Sorry I have to add another sed question. I am searching a log file and need only the first 2 occurances of text which comes after (note the space) "string " and before a ",". I have tried
sed -n 's/.*string \(*\),.*/\1/p' filewith some, but limited success. This gives out all... (10 Replies)
logs:
"/home/abc/public_html/index.php"
"/home/abc/public_html/index.php"
"/home/xyz/public_html/index.php"
"/home/xyz/public_html/index.php"
"/home/xyz/public_html/index.php"
how to use "cut" or "awk" or "sed" to get the following result:
abc
abc
xyz
xyz
xyz (8 Replies)
I'd like to put paragraph breaks \n\n randomly between 5 - 10 occurrences of the dot character (.), for an entire text file. How to do that?
In other words, anywhere between every 5 -10 sentences, a new paragraph will generate. There are no other uses of the (.) except for sentence breaks in... (11 Replies)
Discussion started by: p1ne
11 Replies
LEARN ABOUT CENTOS
cache_repair
CACHE_REPAIR(8) System Manager's Manual CACHE_REPAIR(8)NAME
cache_repair - repair cache binary metadata from device/file to device/file
SYNOPSIS
cache_repair [options] -i {device|file} -o {device|file}
DESCRIPTION
cache_repair reads binary cache metadata created by the respective device-mapper target from one device or file , repairs it and writes it
to another device or file. If written to a metadata device , the metadata can be processed by the device-mapper target.
-i, --input {device|file}
Input file or device with binary metadata.
-o, --output {device|file}
Output file or device for repaired binary metadata.
-h, --help
Print help and exit.
-V, --version
Output version information and exit.
EXAMPLE
Reads the binary cache metadata from file metadata , repairs it and writes it to logical volume /dev/vg/metadata for further processing by
the respective device-mapper target:
cache_repair -i metadata -o /dev/vg/metadata
DIAGNOSTICS
cache_repair returns an exit code of 0 for success or 1 for error.
SEE ALSO cache_dump(8)cache_check(8)cache_restore(8)AUTHOR
Joe Thornber <ejt@redhat.com>
Heinz Mauelshagen <HeinzM@RedHat.com>
Red Hat, Inc. Thin Provisioning Tools CACHE_REPAIR(8)