Search Results

Search: Posts Made By: hayreter
1,604
Posted By hayreter
Hi Ravinder, thanks for quick reply, but as...
Hi Ravinder,

thanks for quick reply, but as I understand your suggestion has nothing to do with parallel job issue, or has it?
1,604
Posted By hayreter
Parallellizing a bash script
Dear all, I have a bash script which does many things in a simple first come first serve basis. But since I have 8 core on my computer I would like to parallel some part of the script. Here is a...
1,031
Posted By hayreter
Hi vgersh99, your code works quite fine, can...
Hi vgersh99,

your code works quite fine, can you briefly explain your code if you don't mind please?

thanks again.
1,031
Posted By hayreter
Delete rows with conditions
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:

...
1,305
Posted By hayreter
Awk, appending a number in the first column of a row with a condition
Hi everyone,

I have a data file in which the data is stored in event blocks. What I would like to get is that the same file with every data row starting with the number of event block. So here is...
1,504
Posted By hayreter
Hi, what I posted here is not a home or course...
Hi, what I posted here is not a home or course work. I am a postdoc in a university, and I do make quite complicated calculations, this is a part of research project.
1,504
Posted By hayreter
If .. Else statement
Hi everyone,

I have an output file and somewhere in this file there is a line looks like


# Integrated weight : .60573E+01


I need to write a shell script which finds and reads the...
2,352
Posted By hayreter
thanks RudiC, this works very well. If you don't...
thanks RudiC, this works very well. If you don't mind I would like to ask another simple question.

now I need to set a condition, after I run the program it produces an output file. Somewhere in...
2,352
Posted By hayreter
ok, first of all i don't need sed to run the...
ok, first of all i don't need sed to run the program, running the program comes after I change the parameter, forget about running the program. Second, I want the text file to be modified to look...
2,352
Posted By hayreter
sed substitution
Hi everyone,

I need very simple sed command to change a parameter in a text file.

I have a line in this text which is like


set xx 0.5


A program reads this file and does some...
2,760
Posted By hayreter
so where is w1 wrapper script? ----------...
so where is w1 wrapper script?

---------- Post updated at 11:18 AM ---------- Previous update was at 10:48 AM ----------

Hi drl,

I finally figured it out from your solution, the following...
2,760
Posted By hayreter
That's fine, and here is what I really want for...
That's fine, and here is what I really want for how to execute,
the fortran program is called as work, so I run it as ./work and it prompts.
I would like to parse arguments as follows

./work 1...
2,760
Posted By hayreter
Hi drl, this is kind of what I want, do you...
Hi drl,

this is kind of what I want, do you parse the arguments in command line or you simply embed them in your code?
2,760
Posted By hayreter
write(*,*) 'input event file: (e.g. events.lhe)' ...
write(*,*) 'input event file: (e.g. events.lhe)'
read(*,'(a)') infile
c
write(*,*) 'name for output file: (e.g. dec-events.lhe)'
read(*,'(a)') outfile
2,760
Posted By hayreter
here is where they are defined ...
here is where they are defined

character*70 infile,outfile
integer run_mode
common/mode/run_mode,infile
2,760
Posted By hayreter
open(lunr,file=infile,status='old') ...
open(lunr,file=infile,status='old')
open(lunw,status='scratch')
open(luni,file=outfile,status='unknown')
c
c copy old banner into new banner and the param_card.dat into the...
2,760
Posted By hayreter
Hi drl, thanks for your suggestion, but I...
Hi drl,

thanks for your suggestion, but I could not completely understand your solution and I don't think it will solve my problem. Let me tell you in this way; my answers for prompt questions...
2,760
Posted By hayreter
I have the source code of executable here...
I have the source code of executable

here are the relevant parts where it prompts on the screen:

1st prompt;

write(*,*)
write(*,*) ' Input run mode:'
write(*,*) ' ---------------'...
2,760
Posted By hayreter
Scripting with executables
Hi everyone,

I am working with an executable (let's say work) in bash shell. When I run this work
executable it asks the following information;
1- choose task a or b
2- input file
3- output...
3,568
Posted By hayreter
thanks a lot drl, this looks quite useful.
thanks a lot drl, this looks quite useful.
3,568
Posted By hayreter
Thanks Don Cragun, this is exactly what I was...
Thanks Don Cragun,
this is exactly what I was looking for.

---------- Post updated at 10:15 AM ---------- Previous update was at 10:10 AM ----------

And thanks Scrutinizer as well, luckily...
3,568
Posted By hayreter
Isn't it just a matter of formatting? Assume...
Isn't it just a matter of formatting?
Assume the number is something like
123.456
I just need it to be written as
0.123456E+03
3,568
Posted By hayreter
I am using shell script spacebar. My code is an...
I am using shell script spacebar. My code is an AWK code

---------- Post updated at 09:53 PM ---------- Previous update was at 09:49 PM ----------

Bipi,
I don't think that this is much useful...
3,568
Posted By hayreter
Special format for numeric print out
Hi,
I know this must be very simple and stupid question
but I could not find a proper answer anywhere else,

My script generates numeric values in the following format

3.01234567891E+03

I...
2,437
Posted By hayreter
don't worry, I perfectly understood what you mean...
don't worry, I perfectly understood what you mean :)
thanks a lot bipi.
Showing results 1 to 25 of 50

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