I have some directories I am trying to sort. When I attempt to sort them and they are in this format, everything works great:
This makes thefiles in the order
However, if I try to do use a forward slash as the delimiter: sort -t/ it does not work. I've tried sort -t "/" and tried using -k. This is probably an easy question, but I'm just missing something.
Using the script: (Called replaceit)
#!/bin/ksh
String=$1
Replace=$2
sed -e "s/${orig}/${new}/g" oldfile.txt > newfile.txt
In oldfile.txt, I'm looking for: getenv("Work")
And change it To: /u/web
I execute the script:
replaceit "getenv(\""Work\"")" /u/web
I'm getting sed... (3 Replies)
how to escape / (forward slash) in a string.
I have following scnerio:
sed s/${var1}{$var2}
var1 and var2 both contain slashes, but sed gives error if there is a slash in var1 or var2. sed is used here to replace var1 with var2.
Thanks in advance (1 Reply)
Hi all,
I need to know way of inserting backward slash before forward slash. My problem is that i need to supply directory path as an argument while invoking cshell script. This argument is further used in script (i.e. sed is used to insert this path in some file). So i need to place \ in front... (2 Replies)
What is the significance of the forward slash(/) while specifying a directory?
cp -av /dir/ /opt/
and
cp -av /dir /opt
Does effectively the same job it seems? (2 Replies)
i need to replace '/' forward slash with \/(backward slash follwed by a forward slash) using sed command when the forward slash occurs as a first character in a file..
Tried something like this but doesn't seem to work.
find $1 -print0 | xargs -0 sed -i -e 's/^\//\\\//g'
Can someone... (19 Replies)
hi
hope somebody can help, there seems to be bit on the net about this, but still cant make it work the way i need.
i have a file live this
mm dd ff /dev/name1
mm dd ff /dev/name2
mm dd ff /dev/name3
mm dd ff /dev/name4
i need to update /dev/name1 etc to /newdev/new/name1 etc
so... (5 Replies)
Hi,
I have a tab delimited file "test.txt" like this:
id1 342 C/T
id2 7453 T/A/-/G/C
id3 531 T/C
id4 756 A/T/G
id5 23 A/G
id6 717 T/A/C
id7 718 C/T/A
And so on, with the possible choices for letters being A,C,T,G.
I would like to exclude from my file all the lines that do not have... (3 Replies)
I have existing pattern in the perl script as:
my $pattern = "^Line.*?:|^Errors*: |^SEVERE:.*?:|^Null pointer exception occurred";
and I wanted to include below keywords in my search pattern
"I/O exception" and "FileNotFoundException"the problem is when I include my pattern like
my... (5 Replies)
./split2.sh: line 1: split/ssl/pop3s.txt: No such file or directory
sort: cannot read: split/ssl/pop3s.txt: No such file or directory
Hi there,
I am pulling data from the following source:
ssl/http
ssl/http
ssl/http-alt
ssl/https
ssl/https
ssl/https
ssl/https
ssl/https
ssl/https... (3 Replies)
Discussion started by: alvinoo
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)