12-11-2001
numbering of process
How does UNIX handle the numbering of processes?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Just a shot question...
how to make 1,2,3,...999
into the form of
001,002,003....999
(3 digits)
Thanks.... (9 Replies)
Discussion started by: biglemon
9 Replies
2. Shell Programming and Scripting
I'm trying to do a script that will look for a log file if it is already there change the name to another name.
I.E
if log.0 is there
rename to log.1
rename log.1 to log.2
rename log.2 to log.3 and so on.
Only thing is I got no idea where or what is the best command to use for this? ... (3 Replies)
Discussion started by: merlin
3 Replies
3. Shell Programming and Scripting
Hi all,
I need to number the lines in a file.
I tried using "set nu" in the vi editor, but it is only temporary.
Can anyone help me please.
Thanx in advance.
MK (4 Replies)
Discussion started by: minazk
4 Replies
4. UNIX for Advanced & Expert Users
hello i'm trying to figure out how to number a blank line. For instance this :
sed '/./=' file | sed '/./N; s/\n/ /'
gives me
1 aaaa
2 bbbbbb
4 cccccc
5 ffkkkfff
6 ffsdfdfs
I would like something like this:
1 aaaaa
2
3 bbbbbb
4
5 cccccc
And so... (6 Replies)
Discussion started by: wisher115
6 Replies
5. Shell Programming and Scripting
Hello everyone,
I want get numbered lines from a file. and i can do it with: sed = file.txt | sed "/./N; s/\n/ /" | sed -n "5,7p"
but the output that i get is something similar to:
5 line5
6 line6
7 line7
and i want something like this (with 2points after the number):
5:... (6 Replies)
Discussion started by: vibra
6 Replies
6. Shell Programming and Scripting
Hi,
I have this large file and sometimes there are duplicates and I want to basically find them and figure how many there are.
So I have a file with multiple columns and the last column (9) has the duplicates.
eg.
yan
tar
tar
man
ban
tan
tub
tub
tub
Basically what I want to... (6 Replies)
Discussion started by: kylle345
6 Replies
7. UNIX for Dummies Questions & Answers
If I a list of components, is there anyway to number (like automatically have: 1,2,3,...) the rows of my data? (1 Reply)
Discussion started by: cosmologist
1 Replies
8. Shell Programming and Scripting
Hi,
All I need to do is number a file.
The file looks like this
>
JJJJJJJJJJJJJJJJJJJJJ
>
JKJKJKKKKKKJJJ
>
MMMMYKKKJKKK
what I want to do is number it so that theres a numerical value beside the >.
>1
JJJJJJJJJJJJJJJJJJJJJ
>2
JKJKJKKKKKKJJJ (2 Replies)
Discussion started by: kylle345
2 Replies
9. Shell Programming and Scripting
Would it be possible for a script to duplicate a file and incrementally number it?
File in: XXX_007_0580_xxxx_v0016.aep
File out: XXX_007_0580_xxxx_v0017.aep
If someone knows of a way I'd love to see it.
Thanks! (7 Replies)
Discussion started by: scribling
7 Replies
10. Shell Programming and Scripting
I'm not really sure how to explain this but I will try. In the attached file if $4=$4 and $5="-" then the last record is 1 and the one above that is 2, etc...
However, $4=$4 and $5="-" then the first record is 1 and the one below that is 2, etc...
"-" example:
chr10 90694830 90695123... (7 Replies)
Discussion started by: cmccabe
7 Replies
LEARN ABOUT DEBIAN
hexahedron
hexahedron(7rheolef) rheolef-6.1 hexahedron(7rheolef)
NAME
hexahedron - Hexaedron reference element
DESCRIPTION
The hexahedron reference element is [-1,1]^3.
^ z
|
4----------7
| |
| |
| |
| 5------+---6
| | | |
0---+------3 - | ---> y
| |
| |
| |
1----------2
x
Curved high order Pk hexaedra (k >= 1) in 3d geometries are supported. These hexaedra have additional edge-nodes, face-nodes and internal
volume-nodes.
THESE NODES ARE NUMBERED AS
first vertex, then edge-node, following the edge numbering order and orientation, then face-nodes following the face numbering order and
orientation, and finally the face internal nodes, following the hexaedron lattice. See below for edges and faces numbering and orioenta-
tion.
4----19----7
| |
|16 23 | 18
12 21 15
| 5----17+---6
|22 | 26 | 25|
0---+-11---3 |
13 24 14
8 | 20 10|
| |
1-----9----2
P2
NUMBERING
The orientation is such that triedra (01, 03, 04) is direct and all faces, see from exterior, are in the direct sens. References: P. L.
Georges, "Generation automatique de maillages", page 24-, coll RMA, 16, Masson, 1994. Notice that the edge-nodes and face-nodes numbering
slighly differ from those used in the gmsh mesh generator when using high-order elements. This difference is handled by the msh2geo mesh
file converter (see msh2geo(1)).
IMPLEMENTATION
const size_t dimension = 3;
const Float measure = 8;
const size_t n_vertex = 8;
const Float vertex [n_vertex][dimension] = {
{-1,-1,-1 },
{ 1,-1,-1 },
{ 1, 1,-1 },
{-1, 1,-1 },
{-1,-1, 1 },
{ 1,-1, 1 },
{ 1, 1, 1 },
{-1, 1, 1 } };
const size_t n_face = 6;
const size_t face [n_face][4] = {
{0, 3, 2, 1 },
{0, 4, 7, 3 },
{0, 1, 5, 4 },
{4, 5, 6, 7 },
{1, 2, 6, 5 },
{2, 3, 7, 6 } };
const size_t n_edge = 12;
const size_t edge [n_edge][2] = {
{0, 1 },
{1, 2 },
{2, 3 },
{3, 0 },
{0, 4 },
{1, 5 },
{2, 6 },
{3, 7 },
{4, 5 },
{5, 6 },
{6, 7 },
{7, 4 } };
SEE ALSO
msh2geo(1)
rheolef-6.1 rheolef-6.1 hexahedron(7rheolef)