Given the simple assumption that a marker should be a smaller value in the first column than in the line previus for creation of a new file the following should do in bash:
I am trying to cut the first 10 characters from a file only if the file has 'xyz' in field 185-188.
I tried this
cat filename | cut -c1-10
but this gives me all the records regardless of what is in field 185-188.
Is this doable ?
Thanks in advance for responses. (2 Replies)
Hi gurus,
I have set of files in a directory
ex : test_file1.csv
test_file2.csv
test_file3.csv
my requirement is to copy these files into another directory but with date appended to the name :
like after copying the files should look like : test_file1_07072008.csv
... (7 Replies)
Hi Guys,
I need help in modifying a large text file containing more than 1-2 lakh rows of data using unix commands. I am quite new to the unix language
the text file contains data in a pipe delimited format
sdfsdfs
sdfsdfsd
START_ROW
sdfsd|sdfsdfsd|sdfsdfasdf|sdfsadf|sdfasdf... (9 Replies)
hye there...
i have a problem to copy file in specific folder
that will change the name according to
host,time(%m%s) and date(%Y%M%D)
example folder name:
host_20100531.154101801
this folder name will always change...
but i just want to copy the AAA.txt and BBB.txt file..
really need... (17 Replies)
I know this is a complicated question but I will try to illustrate it with some data. I have a data file that looks like the following:
1341 NA06985 0 0 2 46.6432798439
1341 NA06991 NA06993 NA06985 2 48.8478948517
1341 NA06993 0 0 1 45.8022601455
1340 NA06994 0 0 1 48.780669145
1340... (1 Reply)
Hi everyone,
I will appreciate a lot if anyone can help me about a simple issue.
I have a data file, and I need to remove some rows with a given condition.
So here is a part of my data file:
5,14,1,3,3,0,0,-0.29977188269E+01
5,16,1,4,4,0,0,0.30394279900E+02... (4 Replies)
Hi ALL,
I have two file. I need to combine these two file based on a layout.
I used the below code and able to extract the record. But now able to insert that to a 3'rd file in between the extract
FILE 1
CAID NUMBER 1-20
TID NUMBER 21-22
LABEL CHAR 23-44
BASE 45-60... (5 Replies)
Discussion started by: arunkumar_mca
5 Replies
LEARN ABOUT DEBIAN
gpiv_manipiv
GPIV_MANIPIV(1) General Commands Manual GPIV_MANIPIV(1)NAME
gpiv_manipiv, gpiv_fasty, gpiv_flipx, gpiv_flipy, gpiv_revert, gpiv_rot90, gpiv_rot180 - Simple data manipulation tool for PIV data.
SYNOPSIS
gpiv_manipiv [-h | --help] [-p | --print] [-v | --version] [-fi x0 y0 x1 y1] [-no_fi | --pass x0 y0 x1 y1] [-fy] [-r] [--rev] [-x] [-y]
[filename] < stdin > stdout
DESCRIPTION
gpiv_manipiv manipulates order and positions of PIV data, mirrors (flips) the data in horizontal (x) or vertical (y) direction, rotates
over 90 and 180 degrees. As rotating over 180 degrees is identic to flipping over x as well as over y-direction, the program must be called
twice or must be called once by rot180.
The parameters read from the configuration resources (containing the key POST) may be overruled by the command line options, as explained
below. In case an alias name of gpiv_manipiv has been used, all non-relevant parameters are disabled.
Options-fi x0 y0 x1 y1
filters out data from a piv data stream from location (x0,y0) to (x1,y1). Filtering only implies setting the peak number to -1.
-no_fi | --pass x0 y0 x1 y1
filters out all data, except those from (x0,y0) to (x1,y1). This option is the opposite of -fi. Filtering only implies setting the
peak number to -1.
-fy Returns fast running y-positions of data that are originally written with fast running x-positions. All other variables (particle
displacements, snr, peak#) are at the new positions, too. Identic to fasty.
-h | --help
On-line help.
-p | --print
Prints parameters, command line options and input and output filenames to stdout. The output is identic of filename.par, in case -f
is used.
-r Rotates the data over 90 degrees. Identic to rot90.
--rev Reverts array indexes of output data for getting reversed order. This results into high to low running positions or vice versa.
Identic to revert.
-v | --version
Print version information on standard output, then exits successfully.
-x Flips the data in x-direction (vertical axis). Identic to flipx.
-y Flips the data in y-direction (horizontal axis). Identic to flipy.
filename
Input PIV data file. Overrides stdin and stdout. Output will be written to filename.ma.piv. The parameters will be written or
appended to filename.par and may be used for future use by including them in ./gpivrc.
SEE ALSO
gpivtools
AUTHOR
Gerber Van der Graaf
8 November 2006 GPIV_MANIPIV(1)