Search Results

Search: Posts Made By: ThomasP
3,495
Posted By ThomasP
My bad I should've marked this as solved
My bad I should've marked this as solved
3,495
Posted By ThomasP
First of all thanks for your help guys, sorry for...
First of all thanks for your help guys, sorry for my brief absence I had moved on from this to work on something else (also for my thesis).

Good news: the sprintf() did exactly what I needed it to...
3,495
Posted By ThomasP
That's the thing I did something similar and it...
That's the thing I did something similar and it didn't give me the correct FNR instead it seemed to reevaluate the variable (max_line in your example) to =NFR

Although I'm not sure whether I put...
3,495
Posted By ThomasP
Ah yes see that's the problem, the 'overlap' NFR...
Ah yes see that's the problem, the 'overlap' NFR will always be several (100+) lines before the oldte==te2 (energy equilibrium) NFR, because of how the simulation works.

So if the some_var still...
3,495
Posted By ThomasP
So f.e. some_var=sprintf(NFR) and...
So f.e.


some_var=sprintf(NFR)


and then later

print(some_var)


Would give me the original value and some_var would not be reevaluated as being =NFR ?
3,495
Posted By ThomasP
Awk: Assigning a variable to be the value of FNR at a certain line
Sorry for the probably strangely worded title but I don't really know how else to put it.

Background context: Post processing LAMMPS simulation data.
tl;dr: I'm making two spheres collide, every...
Showing results 1 to 6 of 6

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