02-12-2013
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I have a big inventory file that is NOT sorted is any way.
The file is have "tagged" information like the ip address "*IP=" or the name "*NM=" .
How do I get just the ip address or the name and not the whole line?
I have tried to use AWK without any success. I always get the whole line... (8 Replies)
Discussion started by: pierrebjarnfelt
8 Replies
2. Shell Programming and Scripting
Hi all,
I am trying to extract the values ( text between the xml tags) based on the Order Number.
here is the sample input
<?xml version="1.0" encoding="UTF-8"?>
<NJCustomer>
<Header>
<MessageIdentifier>Y504173382</MessageIdentifier>
... (13 Replies)
Discussion started by: oky
13 Replies
3. Shell Programming and Scripting
i have a file which contains alphanumeric data in every line. what i need is the data after certain pattern. the data after the pattern is not of fixed length so i need the data till the space after the pattern.
Input file:
bfdkasfbdfg khffkf lkdhfhdf pattern (datarequired data not required)... (2 Replies)
Discussion started by: gpk_newbie
2 Replies
4. Shell Programming and Scripting
11
22
33
44
55
66
77
When pattern 55 is met, print upto it, so output is
11
22
33
44 (1 Reply)
Discussion started by: anilcliff
1 Replies
5. Shell Programming and Scripting
i need to search for a pattern from a big file and print everything expect the next 6 lines from where the pattern match was made. (8 Replies)
Discussion started by: chidori
8 Replies
6. Shell Programming and Scripting
Hi,
I am writing a shell script to parse some files, and gather data.
The data in the files is displayed as below.
.......xyz: abz: ......qrt: ....
.......xyz: abz: ......qrt: ...
I have tried using awk and cut, but the position of these values keep changing, so I wasn't able to get... (2 Replies)
Discussion started by: Serena
2 Replies
7. UNIX for Dummies Questions & Answers
Hi experts , im new to Unix,AWK ,and im just not able to get this right.
I need to match for some patterns if it matches I need to print the next few words to it.. I have only three such conditions to match… But I need to print only those words that comes after satisfying the first condition..... (2 Replies)
Discussion started by: 100bees
2 Replies
8. Shell Programming and Scripting
Hello Experts , require help . See below output:
File inputs
------------------------------------------
Server Host = mike
id rl images allocated last updated density
vimages expiration last read <------- STATUS ------->... (4 Replies)
Discussion started by: tigerhills
4 Replies
9. Shell Programming and Scripting
The intended result should be :
PDF converters
'empty line'
gpdftext and pdftotext?xml version="1.0"?>
xml:space="preserve"><note-content version="0.1" xmlns:/tomboy/link" xmlns:size="http://beatniksoftware.com/tomboy/size">PDF converters
gpdftext and pdftotext</note-content>... (9 Replies)
Discussion started by: Klasform
9 Replies
10. Shell Programming and Scripting
hi,
I'm trying to calculate IP addresses and their respective calls to our apache Server. The standard format of the input is
HOST IP DATE/TIME - - "GET/POST reuest" "User Agent"
HOST IP DATE/TIME - - "GET/POST reuest" "User Agent"
HOST IP DATE/TIME - - "GET/POST reuest" "User Agent"
HOST... (2 Replies)
Discussion started by: busyboy
2 Replies
cvmkfile(1) cvmkfile(1)
NAME
cvmkfile - Create a pre-allocated file
SYNOPSIS
cvmkfile [-k <key>] [-p] [-s] [-w] [-z] <size>[k|m|g] <filename>
DESCRIPTION
cvmkfile can be used to pre-allocate a file on the Xsan volume. This
is useful and preferable when preparing a file for use in a real-time
or streaming environment as the entire file is represented in only one
file system extent. Additionally, a file can be placed onto a specific
storage pool by specifying the <key> value, which is used as the affin-
ity locator. See cvfs_config(4) for more details about affinities.
USAGE
The -k <key> optionally tells the file system where to place the data
file. If an Affinity Key is specified, the file is placed on storage
pools that are specified to support this key. If there is no storage
pool with the key specified, then the file is placed in non-exclusive
data pools. If there are no non-exclusive data pools, then ENOSPC (no
space) is returned.
The -p option forces the allocation and any subsequent expansions to be
fitted "perfectly" as multiples of the InodeExpandMin configuration
parameter. The allocation extent will always line up on and be a per-
fect multiple of the blocks specified in InodeExpandMin.
The -s option forces the allocation to line up on the beginning block
modulus of the storage pool. This can help performance in situations
where the I/O size perfectly spans the width of the storage pool's
disks.
The -w option sets the file size to be equal to <size>. Without this
option the blocks are allocated but the size is set to zero. NOTE:
Unless the -z option is used, the new file will contain undefined data.
Using the -w option is not recommended unless absolutely needed.
The -z option causes the file to be physically zeroed out. This can
take a significant amount of time.
The <size> argument specifies the number of bytes, kilobytes(k),
megabytes(m) or gigabytes(g) to allocate for the file. There is no
guarantee that all requested space will be allocated. If there is
insufficient contiguous available space to satisfy the requested amount
then a "best effort" will be performed. In this case a success value
is returned even though not all of the requested amount is allocated to
the file. Even though the allocation may not be fully satisfied, if
the -w option is specified then the file size will still reflect the
requested <size> value.
EXAMPLES
Make a file of one gigabyte with zero length. Allocate it on a storage
pool that favors the media type 6100_n8.
rock # cvmkfile -k 6100_n8 1g foobar
SEE ALSO
cvfs_config(4), cvmkdir(1)
Xsan File System December 2005 cvmkfile(1)