On Wed, 2009-06-10 at 18:18 +, Joseph L. Casale wrote:
I am rsyncing and remotely doing some work based on a logfile from
a windows box from a centos backup server. I get the output from a
vss snapshot that has a section like this:
* SNAPSHOT ID = {639ef5df-c933-4496-878a-ed57b9d52876}
Joseph L. Casale wrote:
if the text indented beneath it has D:, then do the same and extract
SNAPSHOT ID if and only if E: follows?
If the line counts are constant you could do the reverse:
grep -B 3 \(E:\|D:\) input.txt | grep Shadow
Which would show the 3 lines above a line that has E:\
If the line counts are constant you could do the reverse:
grep -B 3 \(E:\|D:\) input.txt | grep Shadow
Now that's cool, each case has to be separate so
grep -B 3 D: input.txt or even the actual volume string for
certainties sake is the ticket!
Thanks Nate and Bill!
jlc
On Jun 10, 2009, at 2:18 PM, Joseph L. Casale wrote:
I am rsyncing and remotely doing some work based on a logfile from
a windows box from a centos backup server. I get the output from a
vss snapshot that has a section like this:
* SNAPSHOT ID = {639ef5df-c933-4496-878a-ed57b9d52876} ...
Tony Schreiner wrote:
On Jun 10, 2009, at 2:18 PM, Joseph L. Casale wrote:
I am rsyncing and remotely doing some work based on a logfile from
a windows box from a centos backup server. I get the output from a
vss snapshot that has a section like this:
* SNAPSHOT ID =
5 matches
Mail list logo