When i grep for a pattern the search results comes up with matching lines(some before the pattern and some after)...how can i limit the search so that it shows only the lines after the pattern specified (5 Replies)
Hi experts,
I want to grep a number 9366109380 from a file but it will also show me the next 5 lines. Below is the example-
when i grep 989366109380, i can also see the next 5 lines.
Line 1. <fullOperation>MAKE:NUMBER:9366109380:PPAY2;</fullOperation>
Line 2.... (10 Replies)
Hi all
If my text file as follow:
group size time file
other 58585739 2008 test1.csv
other 122 2008 testcsv.sh
other 164 19:28 testexplain.sh
other 29132428 2008 testq.csv
other 104 21:02 testshell.sh
other 792 21:39 xxx.txt
I need to show file to new format as follow:
group... (1 Reply)
I've seen several examples of grep showing the filename the string was found in, but what I really need is grep to show the file details in long format (like ls -l would).
scenario is:
grep mobile_number todays_files
This will show me the string I'm after & which files they turn up in, but... (2 Replies)
Hi,
I have a log file without date/time, and I want that everytime tail|grep find something it displays the date/time and the line. I have tried something like this command but without any luck to display the date/time:
tail -F catalina.out | sed "s/^/`date `/" | egrep ... (6 Replies)
Can I modify the grep command to show only a process name?
Currently I run ps -efa | grep chk_web to get the following:
mousr 3395 1 0 09:36:06 pts/10 0:00 sh /var/opt/scripts/chk_web.sh
Can this be changed in any way to get only:
/var/opt/scripts/chk_web.sh or chk_web.sh.
I... (3 Replies)
I have a list of patterns (regexes) in a file and use with `grep -f <file_with_list_of_regexes.txt> input.txt` to search in my input for those patterns. grep is doing a fantastic job at it and finds me the matching input text but I also want to see in the output the regex (from... (1 Reply)
Hi guys,
This is probably very easy but I've no idea how to pull this out.
Basically, I need to find errors into a very large logfile. When you grep the ID, the output is like this:
+- Type: 799911 Code: Ret: 22728954 Mand: X Def: Des: UserDes: SeqNo: 2
+- Type: 799911 Code: Ret:... (5 Replies)
Hi,
can I make grep stop after finding the first occurrence of a regex in a line?
Given:
file with various regex patterns
file to be grep'ed
Sadly some of the regex patterns cannot be limited any further, so grep -Eiof patterns.txt file.txt (GNU grep 2.20) will give me possibly n hits... (4 Replies)
Hi
I wanted to know if there is an option in grep command to show the number of results (not the number of lines of findings).
Thanks (14 Replies)
Discussion started by: abdossamad2003
14 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)