04-06-2007
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
How do I add 4 columns to an excel file using Perl? The 4 headers for those columns will all have different names? Please help and I greatly appreciate... (1 Reply)
Discussion started by: dolo21taf
1 Replies
2. Shell Programming and Scripting
I have two files:
file1.txt:
FS Total Used Free Used%
/u01 10000 8000 2000 80%
/u02 10000 8000 2000 80%
/u03 10000 8000 2000 80%
/u04 10000 8000 2000 80%
/u05 10000 8000 2000 80%
/u06 10000 8000 2000 80%
/u07 10000 8000 2000 80%
/u10 10000 5000 5000 50%
file2.txt:... (7 Replies)
Discussion started by: oabdalla
7 Replies
3. Shell Programming and Scripting
Hi,
I have two files and I need to add column 3 of file1 to column 3 of file 2 > file3
I also need to repeat for column 4.
Thanks (1 Reply)
Discussion started by: dsstamps
1 Replies
4. Shell Programming and Scripting
Hey everyone!
I have a need to add 2 files together as columns.
For instance, I have one file that has several rows of data and I want to take data from another file and add Line 1 to the end of Line1 in the first file
file1 line1.........file2 line1
file1 line2.........file2 line2... (12 Replies)
Discussion started by: Kelam_Magnus
12 Replies
5. Shell Programming and Scripting
Hi everyone,
I got a problem with merging files and hoped one of you would have an idea how to approach this issue. I tried it with awk, but didn't get far. This is what I have:
I got 40 files looking like the ones below. All have three columns but the number of rows differs (20000 to 50000).... (6 Replies)
Discussion started by: TuAd
6 Replies
6. UNIX for Dummies Questions & Answers
Dear all,
I have a question. I have a txt.file as below. i want to add 3 more columns: column3=conlum 2*column2; column4=(1-column2)*(1-column2); column5=1-column3-column4. Do you know how to do it? Thanks a lot!
file:
column1 column2
a 1
b 20
c 30
d 3
... (2 Replies)
Discussion started by: forevertl
2 Replies
7. Shell Programming and Scripting
I have a number of files with multiple rows that I need to add together.
Let say I have 10 files:
Each file has a great number of rows and columns. I need to add these files together the following way.
In other words, If, for example, file A occupies Columns 1 to 19, I want to add file B... (7 Replies)
Discussion started by: Ernst
7 Replies
8. Shell Programming and Scripting
Hello
I have a file as below
chr1 start ref alt code1 code2
chr1 18884 C CAAAA 2 0
chr1 135419 TATACA T 2 0
chr1 332045 T TTG 0 2
chr1 453838 T TAC 2 0
chr1 567652 T TG 1 0
chr1 602541 ... (2 Replies)
Discussion started by: plumb_r
2 Replies
9. Shell Programming and Scripting
I have two files (csv and vcf) which look exactly like this
S1.csv
func,gene,start,info
"exonic","AL","2309","het"
"exonic","NEF","6912","hom"S1.vcf
##fileinfo
#CHROM POS ID INFO
chr1 4567 rs323211 1/1:84,104,99
chr4 2309 rs346742 1/1:27,213,90
chr6 5834 ... (5 Replies)
Discussion started by: Sarah_19
5 Replies
10. Shell Programming and Scripting
I have two files, file1 and file2 who have identical number of rows and columns. However, the script is supposed to be used for for different files and I cannot know the format in advance. Also, the number of columns changes within the file, some rows have more and some less columns (they are... (13 Replies)
Discussion started by: maya3
13 Replies
LEARN ABOUT DEBIAN
mkgeo_grid
mkgeo_grid(1rheolef) rheolef-6.1 mkgeo_grid(1rheolef)
NAME
mkgeo_grid -- build a strutured mesh of a parallelotope, in 1d, 2d or 3d
SYNOPSIS
mkgeo_grid options [nx [ny [nz]]]
EXAMPLE
The following command build a triangular based 2d 10x10 grid of the unit square:
mkgeo_grid -t 10 > square-10.geo
geo square-10.geo
or in one comand line:
mkgeo_grid -t 10 | geo -
DESCRIPTION
This command is usefull when testing programs on simple geometries. It avoid the preparation of an input file for a mesh generator. The
optional nx, ny and nz arguments are integer that specifies the subdivision in each direction. By default nx=10, ny=nx and nz=ny. The mesh
files goes on standard output.
The command supports all the possible element types: edges, triangles, rectangles, tetraedra, prisms and hexahedra.
ELEMENT TYPE OPTIONS
-e 1d mesh using edges.
-t 2d mesh using triangles.
-q 2d mesh using quadrangles (rectangles).
-T 3d mesh using tetraedra.
-P 3d mesh using prisms.
-H 3d mesh using hexahedra.
THE GEOMETRY
The geometry can be any [a,b] segment, [a,b]x[c,d] rectangle or [a,b]x[c,d]x[f,g] parallelotope. By default a=c=f=0 and b=d=g=1, thus, the
unit boxes are considered. For instance, the following command meshes the [-2,2]x[-1.5, 1.5] rectangle:
mkgeo_grid -t 10 -a -2 -b 2 -c -1.5 -d 1.5 | geo -
-a float
-b float
-c float
-d float
-f float
-g float
BOUNDARY DOMAINS
-sides
-nosides
The boundary sides are representd by domains: left, right, top, bottom,front and back.
-boundary
-noboundary
This option defines a domain named boundary that groups all sides. By default, both sides and the whole boundary are defined as
domains:
mkgeo_grid -t 10 > square.geo
geo square.geo
mkgeo_grid -t 10 -nosides > square.geo
geo square.geo
mkgeo_grid -t 10 -noboundary > square.geo
geo square.geo
mkgeo_grid -t 10 -noboundary -nosides > square.geo
geo square.geo
REGIONS
-region
-noregion
The whole domain is splitted into two subdomains: east and west, This option is used for testing computations with subdomains (e.g.
transmission problem; see the user manual).
mkgeo_grid -t 10 -region | geo -
CORNERS
-corner
-nocorner
The corners (four in 2D and eight in 3D) are defined as OD-domains. This could be usefull for some special boundary conditions.
mkgeo_grid -t 10 -corner | geo -
mkgeo_grid -T 5 -corner | geo -
COORDINATE SYSTEM OPTION
Most of rheolef codes are coordinate-system independant. The coordinate system is specified in the geometry file `.geo'.
-zr
-rz the 2d mesh is axisymmetric: zr (resp. rz) stands when the symmetry is related to the first (resp. second) coordinate.
FILE FORMAT OPTION
rheolef-6.1 rheolef-6.1 mkgeo_grid(1rheolef)