Hi Friends
How do I do two things from one if statement inside awk? I want to run a script and create a new file from the same condition.
awk '{ if ($2 == ""){print " "|"cd /local/test; ./script.ksh"}{cat > ran_true.txt}}' $IN_FILE
Bolded are the two things I want to be done.
Thanks (1 Reply)
Having a little trouble with awk and an if statement. I have a test setup which I am trying to only print the records which start with the month 03. Everything I tried, prints everything, even the 02 month
03/23/2010 12:47:51
ga2828
SUBMITTED FROM URL: test123.cgi
show port count
... (2 Replies)
Hi,
I have a data file which contains record count.
So doing wc -l rightfit_balancing_count.dat | awk '{print $1}'] gives me the record count stored in the file.
Now, i want to send a mail from UNIX, if the record count is equal to 0,otherwise it should do nothing.
Any help... (2 Replies)
hi,
I have a l-column file of more than 10,000 lines with interspersed negative values. What I want to do is add a fixed number (360) everytime a negative value is encountered while leaving the positive ones as is. I need something that will read every line of the file and do the calculation... (3 Replies)
I run my script "switch.sh" repeatedly (within 30 seconds). Each time script is triggered, script itself should kill all previous process.
Here is my code:
for pid in $(ps -fe | grep 'switch.sh' | grep -v grep | awk '{if ($2<$$) print $2}'); do
sudo kill -9 $pid
done
sleep 30
... (6 Replies)
I am using awk as part of and if then else statement. I am trying to have the user enter a gene name and then a variant or variants and have a specific transcript assigned to the variants depending on the gene. Below is my code but the if then else statement is wrong. Basically, the gene name... (2 Replies)
Hi folks,
I have a scenario to convert the update statements into insert statements using shell script (awk, sed...) or in database using regex.
I have a bunch of update statements with all columns in a file which I need to convert into insert statements.
UPDATE TABLE_A SET COL1=1 WHERE... (0 Replies)
There has to be a way to do this with awk or maybe I'm just focusing on the wrong tool and making this harder than it needs to be.
I'm trying to do a file field lookup/join at a very large scale but the output changes has to change dramatically. I have an input file to do a field lookup from and... (3 Replies)
Discussion started by: brettcasper
3 Replies
LEARN ABOUT DEBIAN
clmvol
clm vol(1) USER COMMANDS clm vol(1)
NAME
clm vol - compute volatile nodes from a set of clusterings
clmvol is not in actual fact a program. This manual page documents the behaviour and options of the clm program when invoked in mode vol.
The options -h, --apropos, --version, -set, --nop are accessible in all clm modes. They are described in the clm manual page.
SYNOPSIS
clm vol [-fraction num (nff factor)] [-o fname (output file)] <cl file>+
DESCRIPTION
clm vol computes a score for each node, which at a minimum is equal to one. The output is in the form of a matrix containing a single col-
umn. The score correlates with what is deemed to be volatile behaviour. For all pairs of clusterings the set of all intersections is com-
puted, and these are considered in turn. An intersection is deemed to be volatile if the size of the intersection is less than half the
size of the smallest of the two clusters. In that case, for each node in the intersection its volatility score is incremented by one over
the size of the intersection. The size comparison can be made more stringent by increasing the -fraction <frac> option, which is by default
set to 0.5. Volatility occurs if the size of the intersection is less than <frac> times the size of the smallest cluster. If the -fraction
value is increased all the way up to 1.0, the implication is that an intersection is considered volatile unless one of the two clusteres
considered is a subset of the other.
AUTHOR
Stijn van Dongen.
OPTIONS
-fraction num (nff factor)
See the discussion at DESCRIPTION.
-o fname (output file)
SEE ALSO
mclfamily(7) for an overview of all the documentation and the utilities in the mcl family.
clm vol 12-068 8 Mar 2012 clm vol(1)