Search Results

Search: Posts Made By: ergy1983
5,363
Posted By ergy1983
Psg amount of running jobs?
Hey,

I have to run a lot of jobs (300) and would like to start at one time only 20 jobs and then after thos jobs are finished the next 20. But how to "ask" for whether the jobs are finished?
...
1,447
Posted By ergy1983
pasting two files while transposing one of them
hey,

I have more a structural problem. I have two input files:
1.inp:

1 2 3 a b c
2 3 4 d f g

and the 2.inp

6 6 6
7 7 7
8 8 8

The goal is to get as much output files (with a name...
1,950
Posted By ergy1983
ok, thanks. Mainly it works. @jim mcnamara:...
ok, thanks. Mainly it works.

@jim mcnamara: It is substituting the old folder with the new one - but only in the output. not in the file.

@durden_tyler: Do you have also an idea how to...
1,950
Posted By ergy1983
how to substitute filepaths with sed or awk?
I am having the following problem. I am having a lot of files (test_1_01.hea, test_1_02.hea, etc) with the content:
project_directory /net/1/d_1/5/
tmp_directory /net/1/d_1/5/...
40,654
Posted By ergy1983
Hmm, yeah, but it doesn't work. it works, if...
Hmm, yeah, but it doesn't work.

it works, if I am using the gsub like this:

But it doesn't work if the second one is replace by a variable, too.
Maybe the problem could be solved if the...
13,598
Posted By ergy1983
yes, and right: I wnated to go to /5/.... ;) ...
yes, and right: I wnated to go to /5/.... ;)

Thanks a lot and it works perfectly.
13,598
Posted By ergy1983
hmmm, thanks first of all for your reply. What is...
hmmm, thanks first of all for your reply. What is the touch for?
And unfortunately there are errors. He is not able to find the file:

./skript.awk: line 3: cd: daysim_29/5/: No such file or...
40,654
Posted By ergy1983
awk gsub with variables?
Hey,

I would like to replace a string by a new one. Teh problem is that both strings should be variables to be flexible, because I am having a lot of files (with the same structure, but in...
13,598
Posted By ergy1983
Reading several files and summing their content line-by-line
Hey,

I am gettin a bit crazy with my script. I have several input datas with the same name (5.ill) in different folders (daysim_01, daysim_02, etc.). The 4. column of each of the data has to be...
12,781
Posted By ergy1983
juchuuuu. Yes. Works fine and is really cool. I...
juchuuuu. Yes. Works fine and is really cool. I didn't know this command.

Thanks a lot.
Sam
12,781
Posted By ergy1983
yes, thats the problem, but a normal variable in...
yes, thats the problem, but a normal variable in a for-loop cannot adress the NR. Or better to say: I don't know how.

But how can I control from line 2 til line 4 do print with one of these...
12,781
Posted By ergy1983
awk for-loop and NR
Hey,

I know this is a stupid question, but it doesn't work.
I have a file with 10 lines and I want to pipe the content to awk and then print line 1 til 2 into another file and then line 3-4 ...
...
9,577
Posted By ergy1983
ok. but the problem is, i am only having mksh and...
ok. but the problem is, i am only having mksh and the I am never able to get the AT&T ksh93, because of their license problems....

So Do you know how the syntax should be for a for-loop in mksh?...
9,577
Posted By ergy1983
thanks, right. I am stupid... But there is...
thanks, right. I am stupid...

But there is another problem. Do you know how the right syntax has to eb for such a for-loop in bash. Because the while-loop doesn't work equally.

And I am always...
9,577
Posted By ergy1983
ok. thanks. Do you then have an idea how to...
ok. thanks.

Do you then have an idea how to realize such a grid by a loop easily?

And thanks for your reply, sam
9,577
Posted By ergy1983
problem with floating point number loops
Hey,

I guess I am just to stupid and am not seeing the "wood for the trees", but I am always getting strange errors.

I want to create a mesh with coordinates like:

x y z
3.1 3.0 ...
3,664
Posted By ergy1983
The input is this ( I have a thousands of files...
The input is this ( I have a thousands of files called clear_*.ill):
clear_01_01_12 286.070998
317.298085
363.381098
383.392224
386.121974
373.427115
345.287062

The script is:
for i in...
3,664
Posted By ergy1983
Hey, thanks for your patience. I expect to...
Hey, thanks for your patience.

I expect to have an output like:
clear_01_01_12 286.070998 317.298085 363.381098 383.392224 386.121974 373.427115 345.287062

But the same what I am doing it is...
3,664
Posted By ergy1983
Thanks for your so fast reply. You know I am...
Thanks for your so fast reply. You know I am really asking myself. Maybe it is to late. This is something so stupid. But it still doesn't work. I tried it before with another variable, but also it...
3,664
Posted By ergy1983
For-loop with NR
Hey all of you,

I have a very stupid question, but I don't know why, it just doesn't work. I have an output like this:
clear_01_01_12 286.070998
317.298085
363.381098
383.392224
386.121974...
1,458
Posted By ergy1983
hey alister, thanks a lot. This works...
hey alister,

thanks a lot. This works perfectly. Yeah and it is so simple, that I should have found it by myself, but sometimes...

So thanks again for the quick answer,
Sandra
1,458
Posted By ergy1983
output in another file in one line
Hello,

I know this is maybe a stupid question, but I have an output like this:
# gensky 1 1 1:00YST +s -a37.24 -o126.58
# Local solar time: 1.80
# Solar altitude and azimuth: -55.1 -47.0
#...
4,637
Posted By ergy1983
solution
Hey ho,

found the solution for it. the problem was still that even I was able to print it (thanks Franklin52) system() didn't work. Here is the solution:

$ cat runde.txt |awk -f test.awk
...
4,637
Posted By ergy1983
of course: nr blickr zeit system raum...
of course:

nr blickr zeit system raum jal_hoehe_vorher jal_winkel_vorher jal_hoehe_nachher jal_winkel_nachher /rol_A_vorher rol_B_vorher rol_C_vorher rol_A_nachher rol_B_nachher rol_C_nachher
201...
4,637
Posted By ergy1983
no just empty space...
no just empty space...
Showing results 1 to 25 of 37

 
All times are GMT -4. The time now is 06:56 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy