Shell script for field wise record count for different Files .csv files
Hi,
Very good wishes to all!
Please help to provide the shell script for generating the record counts in filed wise from the .csv file
My question:
Source file:
My target file should generate the .csv file with the record count on field wise as below:
Target File:
Field1 has 4 values and field2 has 3 values and field3 has two values so the target file should be as below.
My source file can changes with more columns or less, so the target file should also have the same number of columns with the record count. Please help to resolve this..
Regards,
Kiran.
Last edited by Don Cragun; 01-21-2016 at 05:39 AM..
Reason: Add CODE tags.
Hi,
I have one text file and zip file in UNIX directory.The Zip file contains another text file.
For Ex:
Text File Name = Req_file.txt
Zip file Name= Response_file.txt_04072009_121548.gz
Zip file contains one text file that name is Response_file.txt
I want to compare the record... (1 Reply)
Hi All
I am trying to combine columns from multiple text files into a single file using paste command but the record length being unequal in the different files the data is running over to the closest empty cell on the left. Please see below.
What can i do to resolve this ?
File 1 File... (15 Replies)
Hi all,
I have written a scripts which count number of lines in all the files in a directory and write in a text file. I don't know how to format it while writing. OS suns solaris 10
my scripts is as below
for i in /ersdg3/ERS/ERS_INPUT_LOGS/RIO/LOGS/RIO_02-Aug-2012/ *.LOG
do
echo... (11 Replies)
Hi Guys,
I need to write a script to compare the count of two csv files each having 5 columns.
Everyday a csv file is recived.
Now we need to compare the count of todays csv file with yesterday's csv file and if the total count of records is same in todays csv file and yesterday csv file out... (3 Replies)
Hi Friends,
I wrote one shell script to check the record count in two files and that will send us the notification activity if found zero record count.
What i did is I created for loop and checking the count for both of the files but what is happening is for first file has data then it's... (13 Replies)
Hi,
I have a file of csv data, which looks like this:
file1:
1AA,LGV_PONCEY_LES_ATHEE,1,\N,1,00020460E1,0,\N,\N,\N,\N,2,00.22335321,0.00466628
2BB,LES_POUGES_ASF,\N,200,200,00006298G1,0,\N,\N,\N,\N,1,00.30887539,0.00050312... (10 Replies)
Hi All,
hope you all are doing well!
I kindly ask you for shell scripting help, here is the description:
I have huge number of files shown below on date wise, which contains different strings(numbers you can say) including 505001 and 602001.
... (14 Replies)
Hi All ,
I have multiple pipe delimited csv files are present in a directory.I need to find out distinct count on a column on those files and need the total distinct
count on all files.
We can't merge all the files here as file size are huge in millions.I have tried in below way for each... (9 Replies)
Discussion started by: STCET22
9 Replies
LEARN ABOUT CENTOS
vgdisplay
VGDISPLAY(8) System Manager's Manual VGDISPLAY(8)NAME
vgdisplay - display attributes of volume groups
SYNOPSIS
vgdisplay [-A|--activevolumegroups] [-c|--colon] [-s|--short] [-v|--verbose] [-d|--debug] [-h|--help] [--ignorelockingfailure]
[--ignoreskippedcluster] [--nosuffix] [-P|--partial] [--units hHbBsSkKmMgGtTpPeE] [--version] [VolumeGroupName [VolumeGroupName...]]
vgdisplay --columns|-C [--aligned] [-d|--debug] [-h|-?|--help] [--ignorelockingfailure] [--ignoreskippedcluster] [--noheadings] [--nosuf-
fix] [-o|--options [+]Field1[,Field2...]] [-O|--sort [+|-]Key1[,[+|-]Key2...]] [-P|--partial] [--separator Separator] [--unbuffered]
[--units hHbBsSkKmMgGtTpPeE] [-v|--verbose] [--version] [VolumeGroupName [VolumeGroupName...]]
DESCRIPTION
vgdisplay allows you to see the attributes of VolumeGroupName (or all volume groups if none is given) with it's physical and logical vol-
umes and their sizes etc.
vgs(8) is an alternative that provides the same information in the style of ps(1).
OPTIONS
See lvm(8) for common options and vgs(8) for options given with --columns.
-A, --activevolumegroups
Only select the active volume groups. The volume group is considered active if at least one of its logical volumes is active.
-c, --colon
Generate colon separated output for easier parsing in scripts or programs. N.B. vgs(8) provides considerably more control over the
output.
The values are:
1 volume group name
2 volume group access
3 volume group status
4 internal volume group number
5 maximum number of logical volumes
6 current number of logical volumes
7 open count of all logical volumes in this volume group
8 maximum logical volume size
9 maximum number of physical volumes
10 current number of physical volumes
11 actual number of physical volumes
12 size of volume group in kilobytes
13 physical extent size
14 total number of physical extents for this volume group
15 allocated number of physical extents for this volume group
16 free number of physical extents for this volume group
17 uuid of volume group
-s, --short
Give a short listing showing the existence of volume groups.
-v, --verbose
Display verbose information containing long listings of physical and logical volumes. If given twice, also display verbose runtime
information of vgdisplay's activities.
--version
Display version and exit successfully.
--columns|-C
Display output in columns, the equivalent of vgs(8). Options listed are the same as options given in vgs(8).
SEE ALSO lvm(8), vgs(8), pvcreate(8), vgcreate(8), lvcreate(8)Sistina Software UK LVM TOOLS 2.02.105(2)-RHEL7 (2014-03-26) VGDISPLAY(8)