Hi,
So my file looks like this:
title number
JR 2
JR 2
JR 4
JR 5
NM 5
NM 8
NM 2
NM 8
I used this line that I wrote to convert it to rows so it will look like this:
awk -F"\t" '!/^$/{a=a" "$3} END {for ( i in a) {print i,a}}' occ_output.tab > test.txt
JR 2 2 4 5
NM 5 8... (4 Replies)
Hi
I am trying to retrieve values from a tab-delimited file.I am using
while read record
value=`echo $record | cut -f12`
done
Where 12 is the column no i want retieve and record is one line of the file.
But it is returning the full record.
Plz help (4 Replies)
I'm facing a strange problem, please help me out.
Here we go.
I want to count number of fields in particular file.
filename and delimiter character will be passed through parameter.
On command prompt if i type following i get 27 as output (which is correct)
cat customer.dat | head -1 | awk... (12 Replies)
Hi,
I have the following code:
LIST=`ls | grep '.sql$'`
echo $LIST
The above code will give me something like..
file1.sh file2.sh file3.sh file4.sh file5.sh
I want to display the values into rows using echo like...
file1.sh
file2.sh (5 Replies)
I have tried the following to no avail.
xargs -n8 < test.txt
awk '{if(NR%6!=0){p=""}else{p="\n"};printf $0" "p}' Mod_Alm_log.txt > test.txt
I have tried different variations of the above, the problem is mixes lines together.
And it includes the tags "%a and %A" I need them to be all tab... (16 Replies)
Hi,
I need urgent help with a tab delimited file I am working on.
This is the file :
TTTT|YYYYYYY|jargon-journal|MP0000000UID||"j1, j2, j3"
I need th following output:
TTTT|YYYYYYY|jargon-journal|MP0000000UID||ji
TTTT|YYYYYYY|jargon-journal|MP0000000UID||j2... (8 Replies)
Hello!
I have a tab delimited file with values in three columns. Some values occur in all three columns, other values are present in only one or two columns. I would like to sort the file so that rows with no missing values come first, rows with one missing values come next, and rows with two... (9 Replies)
I have a file like this.
It is tab delimited.
Unfortunately, the missing data was filled in with a period "." (see the leading lines 1-5 columns)
I want to substitute the periods for misisng data with an integer "-999".
however, I do not want the global replace to change the other periods seen... (7 Replies)
Hello,
I have 40 data files where the first three columns are the same (in theory) and the 4th column is different. Here is an example of three files,
file 2: A_f0_r179_pred.txt
Id Group Name E0
1 V N(,)'1 0.2904
2 V N(,)'2 0.3180
3 V N(,)'3 0.3277
4 V N(,)'4 0.3675
5 V N(,)'5 0.3456
... (8 Replies)
Discussion started by: LMHmedchem
8 Replies
LEARN ABOUT DEBIAN
gpiv_img2gpiv
GPIV_IMG2GPIV(1) General Commands Manual GPIV_IMG2GPIV(1)NAME
gpiv_img2gpiv - Converts images into raw data (extension .r) format with the belonging ASCII header file (extension .h) or into the hdf
format (extension .hdf).
SYNOPSIS
gpiv_img2gpiv [-x | --cross] [-c | --cols ncolumns] [--combine] [-h | --help] [-hdf] [--suf_a EXT] [--suf_b EXT] [--suf_num N] [-i |
--inverse] [-n] [-p] [-r | --rows nrows] [-t] [-v | --version] file_base_name
DESCRIPTION
gpiv_img2gpiv converts images from a common image format (gif, tif etc) into a raw data image with extension .r. Additionally, it generates
an ASCII header file (extension .h). This header contains information concerning image dimensions, color depth, single or double image (for
auto or cross-correlation), time and spatial scales, position of pixel# (0, 0) in the experiment and some additional (non-required) parame-
ters.
gpiv_img2gpiv may also convert to hdf formatted images, with extension .hdf, that might be used by gpiv.
This program does not use the parameter resources from libgpiv. The default settings may be overruled by the command line options, as
explained below.
Options-c | --cols ncolumns
The number of columns of the image (default 1280).
--combine
If the images have been obtained separately, but will have to be used for cross-correlation, they will be combined to a single image
file for interrogating with gpiv_rr (or gpiv). See also --suf_a/b and --suf_num.
-h | --help
On-line help.
-hdf Converts to (or from) hdf formatted data (extension .hdf).
-i | --inverse
Inverse conversion; from raw 8-bit data to image format.
--suf_a EXT
In combination with --combine: the file_base_name of the first frame to be combined is extended with suffix EXT (default: _a).
--suf_b EXT
In combination with --combine: the file_base_name of the second frame to be combined is extended with suffix EXT (default: _b).
--suf_num N
In combination with --combine: If images are numbered instead of with --suf_a and --suf_b. N represents the first of the two num-
bered frames which will be combined with frame N + 1. The combined image will be named to file_base_nameN.r. So, only odd or even
numbered images will result to be loaded in gpiv_rr (or gpiv) for cross-correlation.
-n No execute, only print processes.
-p Prints process to stdout.
-r | --rows
nrows The number of rows in the frame of a SINGLE image (default 1024). An image frame containing a PIV pair of images (to be used
for cross-correlation) should have the double amount of rows; from row #0 to row #nrows - 1 contains the first image and from row
#nrows to row #2xnrows - 1 contains the second image.
-t Image type or format (default bmp).
-v | --version
Print version information on standard output, then exit successfully.
-x | --cross
Double image for cross-correlation (default: single image for auto-correlation).
SEE ALSO
gpivtools
NOTES
The program uses convert.
AUTHOR
Gerber Van der Graaf
19 Januari 2005 GPIV_IMG2GPIV(1)