02-20-2020
All 3 resolutions worked for me perfectly. Thank you so much. you guys never fail to help out. Thanks again!
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi Scripting gurus,
I need to convert following text snippet into csv. please help
Input
heading1 = data1
heading2 = data2
..
..
heading n = data n
heading 1 = data1
..
..
Output
data1,data2,....,data n (3 Replies)
Discussion started by: azs0309
3 Replies
2. Shell Programming and Scripting
I've got two large csv text table files with different number of columns each.
I have to compare them based on first two columns and create resulting file
that would in case of matched first two columns include all values from first one and all values (except first two colums) from second one. I... (5 Replies)
Discussion started by: agb2008
5 Replies
3. Shell Programming and Scripting
Hi
Written some script to convert csv to html but could not add table headers.Below are the errors iam getting
./csv2html | more
+ awk -v border=1 -v width=10 -v bgcolor=black -v fgcolor=white
BEGIN { printf("<table border=\"%d\" bordercolor=\"%s\" width=\"%d\"... (2 Replies)
Discussion started by: zeebala1981
2 Replies
4. Programming
hi...... thanks for allowing me to start a discussion
i am collecting usb usage details of all users and convert it into csv files so that i can export it into some database..
the input text file is as follows:-
USB History Dump
by nabiy (c)2008
(1) --- Kingston DataTraveler 130 USB... (2 Replies)
Discussion started by: certteam
2 Replies
5. Shell Programming and Scripting
Hi,
I have an xml file and I want to convert it with awk in to a csv file
Test.xml
<Worksheet ss:Name="Map1">
<Table ss:ExpandedColumnCount="2" ss:ExpandedRowCount="2" x:FullColumns="1"
x:FullRows="1" ss:DefaultColumnWidth="60">
<Row>
<Cell><Data... (6 Replies)
Discussion started by: research3
6 Replies
6. Solaris
Hi guys,
I usualy am able to google awk stuff but I can't find it so far and there are so many awking gurus here that I will give it a shot.
I want to print $1;$3;"$5 up to the $NF". In other words, I can have 1000 colums, but need to have $5 up to the end.
I started with the idea of... (2 Replies)
Discussion started by: plmachiavel
2 Replies
7. Shell Programming and Scripting
Need help to convert the following data
Account name: admin
Role: admin
Description: Administrator
Enabled: Yes
to
Account Name Role Description Enabled
admin admin Administrator Yes
Perl or AWK?
Thanks
San (9 Replies)
Discussion started by: sanguy
9 Replies
8. Shell Programming and Scripting
Hi ,
I have a simple text file with contents as below:
12345678900 971,76 4234560890
22345678900 5971,72 5234560990
32345678900 71,12 6234560190
the new csv-file should be like:
Column1;Column2;Column3;Column4;Column5
123456;78900;971,76;423456;0890... (9 Replies)
Discussion started by: FreddyDaKing
9 Replies
9. Shell Programming and Scripting
Hello,
I am working on a part of code where I need a awk or shell script to convert the given XML file to CSV or TXT file.
There are multiple xml files and of different structure, so a single script is required for converting data.
I did find a lot of solutions in the forum but... (16 Replies)
Discussion started by: Rashmitha
16 Replies
10. UNIX for Dummies Questions & Answers
HI,
I need to filter my data based on 3 different columns.
Two of the columns are unique so it worked if u use something like
grep 'PASS.*HIGH|HIGH.*PASS' file.tsv
However the other column is not unique ..
So basically I want to extract out lines that match only match these 3... (4 Replies)
Discussion started by: janshamsani
4 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)