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
clmimac
clm imac(1) USER COMMANDS clm imac(1)
NAME
clm imac - Interpret Matrices (c.q. MCL iterands output by mcl) As Clusterings.
clmimac is not in actual fact a program. This manual page documents the behaviour and options of the clm program when invoked in mode imac.
The options -h, --apropos, --version, -set, --nop are accessible in all clm modes. They are described in the clm manual page.
SYNOPSIS
clm imac -imx <fname> [options]
clm imac -imx fname (input file) [-o fname (name/stem for output)] [-dag fname (output DAG)] [-overlap str (overlap mode)] [-sort str
(size|revsize|lex|none)] [-strict num (in 0..1)] [-h (print synopsis, exit)] [--apropos (print synopsis, exit)] [--version (print version,
exit)]
DESCRIPTION
Use clm imac to interpret matrices (as clusterings) output by mcl using mcl's -dump ite option.
Use clm imac only if you have a special reason; the normal usage of mcl is to do multiple runs for varying -I parameters and use the clus-
terings output by mcl itself. One reason is if you are interested in clusterings with overlap; early MCL iterands generally induce cluster-
ings possessing overlap. Another reason is to investigate how the cluster structure associated with the MCL process evolves over time.
OPTIONS
-imx fname (input file)
The input file is presumably an MCL iterand resulting from the mcl option -dump ite.
-strict num (in 0..1)
Higher values (up until 1) will thin out the DAG constructed by clm imac. The default value is 0.00001, yielding the full DAG.
-o fname (file name/stem)
Write to file named fname.
-dag fname (output DAG)
Write the DAG (directed acyclic graph) constructed from the input to file. This DAG is constructed according to the structure associated
with diagonally positive semi-definite matrices as described in the PhD thesis Graph clustering by flow simulation. Consult mclfamily(7)
for references.
-sort str (size|revsize|lex|none)
Sort the clusters either by increasing size, decreasing size, lexicographically by the indices they contain, or use the clustering exactly
as obtained from the interpretation routine.
-overlap mode (overlap mode)
With mode set to cut, remove any overlap by allocating the nodes in overlap to the first cluster in which they were found. Mode keep
leaves overlap unchanged, and mode split results in overlapping parts excised and introduced as clusters in their own right.
AUTHOR
Stijn van Dongen.
SEE ALSO
mclfamily(7) for an overview of all the documentation and the utilities in the mcl family.
clm imac 12-068 8 Mar 2012 clm imac(1)