10-10-2011
It worked perfectly well now
Thank you again radoulov, all the best!
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi Experts,
I need your timely help. I have a problem with merging two files. Here my situation :
Here I have to compare first three fields from FILE1 with FILE2. If they are equal, I have to append the remaining values from FILE2 with FILE1 to create the output.
FILE1:
Class ... (3 Replies)
Discussion started by: Hunter85
3 Replies
2. Shell Programming and Scripting
I have two files with ids and email addresses. File 2 cotains a subset of the records in file 1. The key field is the first field containing the id.
file 1:
123|myadr@abc.com
456|myadr2@abc.com
789|myadr3@abc.com
file 2:
456|adr456@xyz.com
Where the record appears in the second... (3 Replies)
Discussion started by: tltroy
3 Replies
3. Shell Programming and Scripting
Hi,
i want to compare two files by one field say $3 in file1 needs to compare with $2 in file2.
sample file1 - reqd_charge_code
2263881188,24570896,439
2263881964,24339077,439
2263883220,22619162,228
2263884224,24631840,442
2263884246,22612161,442
sample file2 - rg_j
... (2 Replies)
Discussion started by: raghavendra.cse
2 Replies
4. Shell Programming and Scripting
Hi all,
I searched the forum and tried to learn from the similar posts. However, I am new and I need to get help on this. I hope an expert kindly help me to sort this out.
I need to compare field 1 and 2 of the first file with the same fields of the second file and if both fields matches... (9 Replies)
Discussion started by: GoldenFire
9 Replies
5. Shell Programming and Scripting
I've 2 files. Need to compare File1.Field1,File1.Field2 with File2.Field1,File2.Field2. If matches then create a new file.
File1
10 A|ADB|967143.24|1006101.5
3E HK|DHB|24294.76|242513.89
ABN ACU|ADB|22104.69|51647.14
ABN BU|DBA|39137.14|109128.38
ABN|ADB|64466.89|167936.55
ABOC... (2 Replies)
Discussion started by: buster
2 Replies
6. Shell Programming and Scripting
I am newbie to unix and would please like some help to solve the task below
I have two files, file_a.text and file_b.text that I want to evaluate.
file_a.text
1698.74
1711.88
6576.25
899.41
3205.63
4187.98
697.35
1551.83 ... (3 Replies)
Discussion started by: gameli
3 Replies
7. UNIX for Dummies Questions & Answers
Hi
I have 2 files as below
File 1
Chr Start End
chr1 120 130
chr1 140 150
chr2 130 140
File2
Chr Start End Value
chr1 121 128 ABC
chr1 144 149 XYZ
chr2 120 129 PQR
I would like to compare these files using awk; specifically if column 1 of file1 is equal to column 1 of file2... (7 Replies)
Discussion started by: sshetty
7 Replies
8. Shell Programming and Scripting
Hi All,
I am looking for an awk script to do the following
Join the fields together only if the first 4 fields are same.
Can it be done with join function in awk??
a,b,c,d,8,,,
a,b,c,d,,7,,
a,b,c,d,,,9,
a,b,p,e,8,,,
a.b,p,e,,9,,
a,b,p,z,,,,9
a,b,p,z,,8,,
desired output:
... (1 Reply)
Discussion started by: aksijain
1 Replies
9. Shell Programming and Scripting
I want to compare File1 and File2 (Separated by spaces) using four fields (Column 1,2,4,5).
Logic: If column 1 and 2 of File1 and File2 match exactly and if the File2 has the same characters as any of the characters present in column 4 and 5 of file1 then those lines of file1 and file2 are... (1 Reply)
Discussion started by: NamS
1 Replies
10. Shell Programming and Scripting
Dear All,
I want to compare File1 and File2 (Separated by spaces) using four fields (Column 1,2,4,5).
Logic: If column 1 and 2 of File1 and File2 match exactly and if the File2 has the same characters as any of the characters present in column 4 and 5 of file1 then those lines of file1 and file2... (6 Replies)
Discussion started by: NamS
6 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)