I need to process a dirtree containing ms office files such that each file is stored as a variable and also, just the file file stem. Why? They will be using as input and output parameters for another script. For example /path/to/second_script -i filename.docx -o filename
Here's what I... (1 Reply)
Hi All,
I've written a script to read 2 files and compare the contents using while loop but somehow when $line is not found in test2, the script will continue looping.
Below is my code, pls advise what could went wrong
TIA
Nick
for line in test1.txt | while read line
do
grep -i... (4 Replies)
spath="/home/user/k/${1}"
dpath="/home/user/seq/Nov17/${1}"
cd $dpath
ls -1 $spath > list
c=1
while read list
newlist=`echo $list | sed 's/.gz//' `
newnewlist=`echo $newlist | sed 's/.fastq//' `
do
echo $c
echo $list
c=$(($c+1)) (6 Replies)
Below is my script that is using to rename the name of file .Here I am using two methods to pass the both arguments wih script name or run the script and give the input one by one.But my issue is I want to rename the name of the file if user select Y(y) then it should rename the file else select... (4 Replies)
can some one please tell me what is the problem with my syntax:confused:
I have 100 files in one folder
1. want to read each of the line by line
2. calculate their number of the words between the first word and the last word of each line
3. create file for each file with number of words... (8 Replies)
I want to get newvar outside the while
any ideas?
while read myline; do
var=${myline}
newvar1=$(let "$var")
done
echo $newvar1
I found it its ok now Thank you! (0 Replies)
I have a script that reads a file containing a list of server names. It's suppose to loop through the list of names and execute a command on the remote server using ssh. It processes the ssh command for the first server in the list and then exits. Here's the code:
#!/bin/bash
... (2 Replies)
Hi i have to cut columns 2 to 6 from a file and assign it to arrays ,
The following code works
for ctcol in 2 3 4 5 6;
do
set -A a$ctcol $(cut -d, -f $ctcol test_file)
done
how ever this does not work
for ctcol in {2..6};
do
set -A a$ctcol $(cut -d, -f $ctcol test_file)... (4 Replies)
Hi,
i have a problem with this script:
for i in $(cat list_ip_switch)
do
if
if ; then
echo "found ip"
else
echo "not found ip"
fi
done
cat list_ip_switch
10.155.249.171
10.155.249.172 (3 Replies)
The code at the bottom is a simplified example of what we have.
If I use the following:
&& echo "echo failed"
$? returns 1
When I use
if ; then echo "echo failed" ; fi
$? returns 0
Does anyone know what's wrong with this?
Using AIX 6.1 and KSH
for NUM in 1 2 3
do
... (5 Replies)
Discussion started by: jfxdavies
5 Replies
LEARN ABOUT DEBIAN
clmresidue
clm residue(1) USER COMMANDS clm residue(1)
NAME
clm residue - extend clustering of subgraph to clustering of graph.
clmresidue is not in actual fact a program. This manual page documents the behaviour and options of the clm program when invoked in mode
residue. The options -h, --apropos, --version, -set, --nop are accessible in all clm modes. They are described in the clm manual page.
SYNOPSIS
clm residue -icl fname (input clustering) -imx fname (input graph) [-rpm fname (residue projection matrix)] [-o fname (output clustering
file)]
DESCRIPTION
The cluster file presumably contains a clustering of a subgraph of the graph G contained by the matrix file, implying that the row domain of
that clustering is a subset of the node domain of the graph. clm residue will compute a simple upwards projection of that clustering,
resulting in a clustering of G.
OPTIONS
-imx fname (input graph)
-icl fname (input clustering)
-rpm fname (residue projection matrix)
The name for the file in which the residue projection matrix is stored. It contains for each node and for each cluster in the input clus-
tering the combined weight of the (edges to the) neighbours of that node in that cluster. The default output file name is out.rpm.
-o fname (output clustering file)
The name for the file in which the majority vote projection clustering is stored. Aka the majority vote projection clustering storage file
name.
This embodies a very crude approach to distributing the missing nodes in the input clustering onto that same cluster. For each node, the
cluster is taken for which the residue projection is the largest (see above). The residue (i.e. the set of missing nodes) is initially
viewed as a cluster; the set of nodes for which the projection is largest for the residue itself will form a new cluster, if it is not
empty.
By default output is sent to STDOUT.
AUTHOR
Stijn van Dongen.
SEE ALSO
mclfamily(7) for an overview of all the documentation and the utilities in the mcl family.
clm residue 12-068 8 Mar 2012 clm residue(1)