Sponsored Content
Top Forums Shell Programming and Scripting how to arrange datas in columns in shell script. Post 302686871 by vashece on Wednesday 15th of August 2012 02:29:07 PM
Old 08-15-2012
how to arrange datas in columns in shell script.

Hello All,

I have datas in the below format.

Mark 45
Steve 60
Johnson 79
Elizabeth 90

My requirement is to arrange the data in the order as shown in the attachment.
My OS is Solaris.

Image

Last edited by vashece; 08-15-2012 at 03:43 PM..
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

re arrange the columns

Hi - can any one let me know how to re-arrange the columns of a comma seperated file. The problem here is that the colums some times have new lines and when the columns has new lines or extra comma's then it is enclosed in double quotes("). Can any one tell me how to re-arrange the columns now. ... (0 Replies)
Discussion started by: ahmedwaseem2000
0 Replies

2. Shell Programming and Scripting

Shell script to separte columns...

Hi all, I have a data file and need to load the data into tables in a database. The problem is I cannot use a while loop with each line as the data is free text and has all kinds of weird characters including carriage returns and new line characters. Each column is separated by ~^~ and a new line... (2 Replies)
Discussion started by: sam_78_nyc
2 Replies

3. Shell Programming and Scripting

reading XML datas via Shell Script

Hi all, i have an xml file with this fomat(exactly) : <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE TestSuite SYSTEM "../../CallCrt.dtd"> <TestSuite description="Diameter"> <FileReference FileName="DMI_FC01.xml"/> <!--<FileReference FileName="DMI_FC02.xml"/> -->... (1 Reply)
Discussion started by: freepal
1 Replies

4. Shell Programming and Scripting

gawk - reading two files & re arrange the columns

Hi, I am trying to read 2 files and writing to the 3rd file if I find the same elements in 2 files. my first file is 1 0 kb12124819 766409 1.586e-01 1 0 kb17160939 773886 8.674e-01 1 0 kb4475691 836671 8.142e-01 1 0 ... (2 Replies)
Discussion started by: ezhil01
2 Replies

5. Shell Programming and Scripting

Shell script to arrange files into several folders

Hello this is the script Im working on I have a picture collection that I rescued from a hard drive and there are thousands of pictures saved in one folder. What I need is to create several folders and put lets say around 200 pictures in each folder. At the end instead of having one huge... (8 Replies)
Discussion started by: kizofilax
8 Replies

6. Shell Programming and Scripting

Arrange output based on rows into columns

Hi All, I would like to ask help on how can i achieve below output. Inputfile: Oct11,apa1-daily,01:25:01 Oct11,apa2-daily,01:45:23 Oct12,apa1-daily,02:30:11 Oct12,apa2-daily,01:55:01 Oct13,apa1-off,01:43:34 Oct13,apa2-off,01:22:04 Desired output: Clients ... (3 Replies)
Discussion started by: mars101
3 Replies

7. Shell Programming and Scripting

arrange files into columns

Hi may i ask how to arrange this file in into columns like example below Problem: #cat data.txt 1 2 3 4 5 a b c d 9 8 7 6 desired output (9 Replies)
Discussion started by: jao_madn
9 Replies

8. Shell Programming and Scripting

How to arrange xml tags in single row using shell script?

I want to put one xml record in one row and so on... sample two records are here. <?xml version="1.0"?> <Object> <Header> <XCOMVers>V1.0</XCOMVers> <REPORT>XXXXX</REPORT> <CODE>002</CODE> </Header> <IssueCard> <Record> <L>CAR SYSTEM -SSSSS -</L> ... (1 Reply)
Discussion started by: sene_geet
1 Replies

9. Shell Programming and Scripting

How to arrange xml tags in single row using shell script?

I want to put one xml record in one row and so on... sample two records are here. <?xml version="1.0"?> <Object> <Header> <XCOMVers>V1.0</XCOMVers> <REPORT>XXXXX</REPORT> <CODE>002</CODE> </Header> <IssueCard> <Record> <L>CAR SYSTEM -SSSSS -</L> ... (3 Replies)
Discussion started by: sene_geet
3 Replies

10. Shell Programming and Scripting

Shell scripting - need to arrange the columns from multiple file into a single file

Hi friends please help me on below, i have 5 files like below file1 is x 10 y 20 z 15 file2 is x 100 z 245 file3 is y 78 z 23 file4 is x 100 (3 Replies)
Discussion started by: siva kumar
3 Replies
GPIVTOOLS(1)						      General Commands Manual						      GPIVTOOLS(1)

NAME
gpivtools - The PIV tool suite. DESCRIPTION
gpivtools is a set of command-line driven programs for the so-called Digital Particle Image Velocimetry (DPIV). It contains programs for image recording, processing and analysing (resulting into estimators of particle displacement, i.e. PIV data), PIV data validation programs and post-processing tools for manipulating and calculating (scalar) derivatives of the PIV data. Though the command-line driven tools are mainly intended for non-interactive processing, its outputs may directly be visualized in a graph- ical way with the aid of gnuplot. The parameters and options to be used for most of the gpivtools are provided by Libgpiv. They are subsequently searched in ./gpivrc at local directory, at $HOME/.gpivrc (hidden) or at the system-wide configuration file gpiv.conf, which is mostly found at /etc for UNIX-like operating systems. Each parameter is described by the process key: GENPAR (general parameters), CAM (camera settings), TRIG (trigger set- tings), IMG (image header), IMGPROC (image processing), PIV (piv interrogation), VALID (piv data validation) or POST (piv post processing) and the parameter name, separated by a dot (.), followed by its value. Some of the parameters are optional. The parameters may be defined in arbitrary order. Blank lines and comment (starting with a pound sign (#) at the first column) may be included in the parameter files. The parameters may be overruled by the command line options of each tool. Libgpiv provides default parameter values if they are not defined in one of the configuration files or by an option key at the command line. In case stdin and stdout is used, verbose output of the programs is suppressed in order to avoid contamination of the output data. If file- name is used for overruling stdin and stdout, the parameters are written to filename.par. By renaming this file to ./gpivrc or $HOME/.gpivrc, the parameters may directly be re-used for identic processing of other images and PIV data. The parameters defined in $HOME/.gpivrc and in /etc/gpiv.conf are also used by the Graphic User Interface program gpiv. The programs understand different image formats: Portable Network Graphics (filename.png), HDF5 (filename.hdf), raw binary data (file- name.r) that is accompanied by an ASCII header file (filename.h), and LaVision's (tm) uncompressed image format (filename.img). Other for- mats that use lossless compression (TIF, GIF, PGM, BMP) are converted to PNG on the fly. For interrogation of double-framed images using cross-correlation, the second image has to be concatenated after the first one, if this has not already been done by the recording camera. This might be performed by gpiv_combing. Image parameters are read from the header or from the configuration resources (containing the IMG key). GPIV-TOOLS COMMANDS Here is the complete list of available gpivtools programs. See their individual man pages for a more extended description. gpiv_aint Calculates mean image intensity at each interrogation area. This program uses the IMG, PIV and POST parameters. gpiv_combing Combines two images into one image file for cross-correlation. This program uses the IMG parameters. gpiv_errvec Searches the erroneous vectors in a PIV data file and eventually substitutes them with new values. This program uses the PIV and POST parameters. gpiv_fi-keyline Filters each line that starts with a keyword. This program does not use the parameter resources from Libgpiv. gpiv_hdf2piv Converts hdf5 PIV data (extension .hdf) to ASCII data. This program does not use the parameter resources from Libgpiv. gpiv_imgproc, gpiv_mktestimg, gpiv_smooth, gpiv_hilo, gpiv_clip, gpiv_fft, gpiv_invfft, gpiv_lowpass, gpiv_highpass, gpiv_getbit, gpiv_mktestimg (PIV) image processing programs. These programs use the IMGPROC parameters. gpiv_img2gpiv Depreciated: use gpiv_combing instead. Converts images into raw data (extension .r) format with the belonging ASCII header (exten- sion .h) or into hdf format (with extension .hdf). This program does not use the parameter resources from Libgpiv. gpiv_manipiv, gpiv_fasty, gpiv_flipx, gpiv_flipy, gpiv_revert, gpiv_rot90, gpiv_rot180 Simple data manipulation tool for PIV data. These programs use the POST parameters. gpiv_peaklck Tests PIV data on the so-called peak-locking effect by printing/displaying an histogram of the particle displacements at sub-pixel level. This program uses the VALID parameters. gpiv_piv2gnuplt Converts PIV data gnuplot data. Besides this, image interrogation and post-processing programs are able to display their results directly (mostly with the -g option). This program does not use the parameter resources from Libgpiv. gpiv_piv2grid Converts PIV data to grid data for generating contour plots with Plotmtv. This program does not use the parameter resources from Libgpiv. gpiv_piv2hdf Converts ASCII PIV data to hdf5 formatted data (extension .hdf). This program does not use the parameter resources from Libgpiv. gpiv_piv2vec Adds header to PIV data for a vector plot with Plotmtv. This program does not use the parameter resources from Libgpiv. gpiv_process-chain Processes a pipeline of Gpiv-tool command's, forming process a chain from image recording, image processing, image interrogation, data validation, data post-processing. This program does not use the parameter resources from Libgpiv. gpiv_recimg captures images from a IIDC-compliant CCD camera with IEE1394 connection. This program uses the IMG parameters. gpiv_rr Interrogates images in order to obtain displacement estimators of particles for (Digital) Particle Image Velocimetry. This program uses the PIV and VALID parameters. gpiv_sca2gri Converts scalar data from gpiv to grid data for contour plotting with Plotmtv This program does not use the parameter resources from Libgpiv. gpiv_scale Spatial and time scaling program for PIV data. This program uses the IMG and POST parameters. gpiv_series Script for (parallel) processing a series of numbered files. This program does not use the parameter resources from Libgpiv. gpiv_suta Subtracts time-avaraged velocities (local mean) from the PIV estimators. This program does not use the parameter resources from Libgpiv. gpiv_s-avg Spatial statistics of PIV data. This program uses the POST parameters. gpiv_t-avg Calculates time-avaraged mean and rms from a series of PIV data. This program does not use the parameter resources from Libgpiv. gpiv_t-avg-img Calculates time-averaged values from a series of images at each pixel. This program uses the GENPAR parameters. gpiv_t-corr Calculates the velocity correlation as function of time (Eulerian correlation) from a series PIV data sets This program does not use the parameter resources from Libgpiv. gpiv_trig Triggers a (double Nd_YAGG) laser on a CCD camera. This program uses the TRIG parameters. gpiv_uhisto Tests PIV data by printing/displaying an histogram of the horizontal particle displacements. This program uses the VALID parame- ters. gpiv_vhisto Tests PIV data by printing/displaying an histogram of the vertical particle displacements. This program uses the VALID parameters. gpiv_vorstra, gpiv_vorty, gpiv_nstrain, gpiv_sstrain Calculates the differential quantities vorticity, shear strain and normal strain from PIV data. These programs use the POST parame- ters. SEE ALSO
gpiv, gpiv_control AUTHOR
Gerber Van der Graaf 26 March 2008 GPIVTOOLS(1)
All times are GMT -4. The time now is 06:14 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy