Output section of file between two expressions multiple times
Attached is the exact ouput of a vmware VDR log file I am working with but what I am trying to achieve is as follows:
I need to output sections of the file using the string "Normal backup" as the start and "Duration" as the end to seperate files so I can then manipulate them further to create seperate backup logs I can then email.
I found an awk one liner which does what I need but I cannot think how to extract each section to seperate log files. I'm finding this hard to explain so here is an example.
So what I need is for each section it matches to then output to a seperate file (doesn't have to be awk obviously), e.g
etc, etc,
From there I am going to run some more shell stuff over them to tidy them up which i should be able to handle myself.
I apologise if this is hard to understand but I found it difficult to communicate without having a script to begin with.
We have a ksh which runs once every 15 minutes. Based on a certain condition (for invalid data) we are spooling a file and if the file is of length greater than 0 bytes, then we are mailing this file to a group of users. Upon receiving the file, users correct the data so that on its next run the... (2 Replies)
Hi, there,
I wrote a script like this:
#!/bin/bash
#put something into a LIST
for item in $LIST
do
cat $item >> /tmp/output
done
My question is that if I have 5 items in that LIST, should it be opened and closed every time when the ">>" works? So that file will be opened and... (7 Replies)
Hello everybody,
I have a requirement in my script..
When i'am executing a script, it'll ask a passwd of some service account.. I need to pass it to the script through a zipped file when it asks for it.
The script can be executed by more people many number times. So for securty purpose, it... (1 Reply)
Hi,
I have a text file like
Version=abc
Tab=1
URL GOTO=www.abc.com/board=1
some text...
I want to run a loop x no of times and append to the text file above text but
URL GOTO should be www.abc.com/board=2 then 3,4...etc till x.
Kindly help (2 Replies)
I have a list of Servers in no particular order as follows:
virtualMachines="IIBSBS IIBVICDMS01 IIBVICMA01"And I am generating some output from a pre-existing script that gives me the following (this is a sample output selection).
9/17/2010 8:00:05 PM: Normal backup using VDRBACKUPS... (2 Replies)
Hello Team ,
I have to extract date section from the below file output. The output of the file is as shown below.
I have to extract the "" this section from the above output of the file. can anyone please let me know how can we acheive this? (4 Replies)
hi,
I am copying a file from 1 folder to another in /bin/sh. if the file already exists there, it should get copied as filename1. again if copying next time it shouldget copied as filename2.. , filename3..so on..
The problem is i am able to get uptil filename1.. but how do i know what... (6 Replies)
Hi Team ,
Is there a way I can check to see if the same file say , test.dat exists multiple times in the directory path ?
Please help.
Thanks
Megha (5 Replies)
Hi,
I want to grep multiple patterns from multiple files and save to multiple outputs. As of now its outputting all to the same file when I use this command.
Input : 108 files to check for 390 patterns to check for. output I need to 108 files with the searched patterns.
Xargs -I {} grep... (3 Replies)
First of all, apologies if this has already been answered elsewhere. I haven't quite been able to find what I'm looking for yet, so hopefully this won't come across as repetition.
I have a file consisting of ~100 nearly identical lines, each of which contains multiple instances of the string I... (11 Replies)
Discussion started by: pseudo.seppuku
11 Replies
LEARN ABOUT DEBIAN
vmblock
VMBLOCK(9) Open VM Tools VMBLOCK(9)NAME
vmblock - vmware kernel module
SYNOPSIS
modprobe vmblock
DESCRIPTION
This is a kernel filesystem module. Ideally, it should be loaded before any of the Tools userlevel components are allowed to start, though
vmblock itself has no dependencies. When loaded, vmblock will establish itself in /proc/fs/vmblock and create two nodes therein, dev and
mountPoint. Before mounting a vmblock filesystem, ensure that /tmp/VMwareDnD exists as a directory with permissions 1777, otherwise host to
guest drag n' drop operations won't work.
To mount, issue:
mount -t vmblock none /proc/fs/vmblock/mountPoint
Once mounted, vmware-user(1) can begin to make use of vmblock to assist with DnD operations. Note that while vmware-user(1) is running,
it'll keep an open file descriptor on /proc/fs/vmblock/dev, and thus all vmware-user(1) instances must be killed to unmount and unload
vmblock.
OPTIONS
vmblock has no options.
SEE ALSO vmware-checkvm(1)vmware-hgfsclient(1)vmware-toolbox(1)vmware-toolbox-cmd(1)vmware-user(1)vmware-xferlogs(1)libguestlib(3)libvmtools(3)vmware-guestd(8)vmware-hgfsmounter(8)vmware-user-suid-wrapper(8)vmci(9)vmhgfs(9)vmmemctl(9)vmsock(9)vmsync(9)vmxnet(9)vmxnet3(9)HOMEPAGE
More information about vmblock and the Open VM Tools can be found at <http://open-vm-tools.sourceforge.net/>.
AUTHOR
Open VM Tools were written by VMware, Inc. <http://www.vmware.com/>.
This manual page was put together from homepage materials by Daniel Baumann <daniel.baumann@progress-technologies.net>, for the Debian
project (but may be used by others).
2010.03.20-243334 2010-04-08 VMBLOCK(9)