I managed to get it down to a "simple" problem, but I still have some syntax issues.
Here is the code which troubles me:
What I want to do is the following. $4,$5,$6 represent x,y,z coordinates.
If diffx > 3.6 I want to set crit to value 1 from 0, if the crit == 1 I want all the following x values ($4) to be
substracted by value 193.957... and until I reach the point where the crit is set 1 I just want to print out $1-$6.
Maybe it is a simple problem for you and you can help me fix it!
The value of X is between 0-200, the origin of the coordination system lies in one of the edges of the simulation box. So your command will just be the same as print $0.
---------- Post updated at 04:13 PM ---------- Previous update was at 03:16 PM ----------
Was working on Vue.js and stumbled upon this beautiful Vue project by Kadin Zhang
Periodicity is a dynamic periodic table built with Vue.js that animates and graphs data to aid the visualization of chemical concepts.
The code is available on GitHub (2 Replies)
Hi,
I am trying below code but the word boundaries not seem to be working. What am I doing incorrectly?
echo " ECHO " | awk '{ q="ECHO" ; if ( $0 ~ /\bq\b/) print "HELLO" ; }'
OR
echo " ECHO " | awk '{ q="ECHO" ; if ( $0 ~ /\b'$q'\b/) print "HELLO" ; }'
Or
echo " ECHO " | awk... (6 Replies)
Ubuntu wireless has been fine until fresh installation of 12.10. Now, I have periodic drops of the wireless. I can manually disconnect and then reconnect to get the service back.
Sometimes, I am unable to disconnect. When this happens, I have to log off and then on again. (0 Replies)
Hi
I have a periodic task (with the highest priority) which I away every X nano-second.
I am using the function clock_nanosleep with REAL_TIME timer.
when I wake up, I versify that I was awake on time,
and check if the delta between the last time I get to sleep and the current time is X... (4 Replies)
Hello,
In shared memory, when using shmget function, first parameter is ket_t key.
I know it is an integer type, but length of it is system dependent. That means may not be have integer's ranges.
What is range of key_t in Linux? Is it different in distros, for example in ubuntu & fedora? (2 Replies)
I have this awk script. I have two different methods to remove the first column. However defining method = 1 in the BEGIN produces different results than when defining method = 1 later on instead. Any idea what it might be doing differently??? :rolleyes:
BEGIN {
Version = "V05"
... (4 Replies)
I wanted to use GAWK's 'word boundary' feature but can't
get it to work. Doesn't GAWK support \<word\>?
Sample record:
Title Bats in the fifth act of Chushingura (top);
the... (6 Replies)
I have huge txt file having millions of trade data.
For e.g
Trade.txt (first 8 lines in the file is header info)
COB_DATE,TRADE_ID,SOURCE_SYSTEM_TRADE_ID,TRADE_GROUP_ID,
TRADE_TYPE,DEALER_NAME,EXTERNAL_COUNTERPARTY_ID,
EXTERNAL_COUNTERPARTY_NAME,DB_COUNTERPARTY_ID,... (6 Replies)