Sponsored Content
Full Discussion: Grep as a verb
The Lounge What is on Your Mind? Grep as a verb Post 302784281 by hanson44 on Thursday 21st of March 2013 11:14:46 PM
Old 03-22-2013
Is it eff sick?
Or eff ess check?
Or something else?
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

MEM=`ps v $PPID| grep -i db2 | grep -v grep| awk '{ if ( $7 ~ " " ) { print 0 } else

Hi Guys, I need to set the value of $7 to zero in case $7 is NULL. I've tried the below command but doesn't work. Any ideas. thanks guys. MEM=`ps v $PPID| grep -i db2 | grep -v grep| awk '{ if ( $7 ~ " " ) { print 0 } else { print $7}}' ` Harby. (4 Replies)
Discussion started by: hariza
4 Replies

2. UNIX for Dummies Questions & Answers

| help | unix | grep - Can I use grep to return a string with exactly n matches?

Hello, I looking to use grep to return a string with exactly n matches. I'm building off this: ls -aLl /bin | grep '^.\{9\}x' | tr -s ' ' -rwxr-xr-x 1 root root 632816 Nov 25 2008 vi -rwxr-xr-x 1 root root 632816 Nov 25 2008 view -rwxr-xr-x 1 root root 16008 May 25 2008... (7 Replies)
Discussion started by: MykC
7 Replies

3. UNIX for Dummies Questions & Answers

| help | unix | grep (GNU grep) 2.5.1 | advanced regex syntax

Hello, I'm working on unix with grep (GNU grep) 2.5.1. I'm going through some of the newer regex syntax using Regular Expression Reference - Advanced Syntax a guide. ls -aLl /bin | grep "\(x\)" Which works, just highlights 'x' where ever, when ever. I'm trying to to get (?:) to work but... (4 Replies)
Discussion started by: MykC
4 Replies

4. Shell Programming and Scripting

grep for certain files using a file as input to grep and then move

Hi All, I need to grep few files which has words like the below in the file name , which i want to put it in a file and and grep for the files which contain these names and move it to a new directory , full file name -C20091210.1000-20091210.1100_SMGBSC3:1000... (2 Replies)
Discussion started by: anita07
2 Replies

5. UNIX for Dummies Questions & Answers

Advanced grep'in... grep for data next to static element.

I have a directory I need to grep which consists of numbered sub directories. The sub directory names change daily. A file resides in this main directory that shows which sub directories are FULL backups or INCREMENTAL backups. My goal is to grep the directory for the word "full" and then... (2 Replies)
Discussion started by: SysAdm2
2 Replies

6. Shell Programming and Scripting

AWK/GREP: grep only lines starting with integer

I have an input file 12.4 1.72849432773174e+01 -7.74784188610632e+01 12.5 9.59432114416327e-01 -7.87018212757537e+01 15.6 5.20139995965960e-01 -5.61612429666624e+01 29.3 3.76696387248366e+00 -7.42896194101892e+01 32.1 1.86899877018077e+01 -7.56508762501408e+01 35 6.98857157014640e+00... (2 Replies)
Discussion started by: chrisjorg
2 Replies

7. UNIX for Dummies Questions & Answers

Bash - CLI - grep - Passing result to grep through pipe

Hello. I want to get all modules which are loaded and which name are exactly 2 characters long and not more than 2 characters and begin with "nv" lsmod | (e)grep '^nv???????????? I want to get all modules which are loaded and which name begin with "nv" and are 2 to 7 characters long ... (1 Reply)
Discussion started by: jcdole
1 Replies

8. Shell Programming and Scripting

Diff between grep .* file name and grep '.*' filename

Hi, Can anyone let me know what is difference between grep .* foo.c grep '.*' foo.c I am not able to understand what is exact difference. Thanks in advance (2 Replies)
Discussion started by: SasDutta
2 Replies

9. UNIX for Dummies Questions & Answers

Piping grep into awk, read the next line using grep

Hi, I have a number of files containing the information below. """"" Fundallinfo 6.3950 14.9715 14.0482 """"" I would like to grep for Fundallinfo and use it to read the next line? I ideally would like to read the three numbers that follow in the next line and... (2 Replies)
Discussion started by: Paul Moghadam
2 Replies

10. Shell Programming and Scripting

Inconsistent `ps -eaf -o args | grep -i sfs_pcard_load_file.ksh | grep -v grep | wc -l`

i have this line of code that looks for the same file if it is currently running and returns the count. `ps -eaf -o args | grep -i sfs_pcard_load_file.ksh | grep -v grep | wc -l` basically it is assigned to a variable ISRUNNING=`ps -eaf -o args | grep -i sfs_pcard_load_file.ksh |... (6 Replies)
Discussion started by: wtolentino
6 Replies
mcx q(1)							  USER COMMANDS 							  mcx q(1)

  NAME
      mcxquery - compute simple graph statistics

  SYNOPSIS
      mcxq  is	not  in actual fact a program. This manual page documents the behaviour and options of the mcx program when invoked in mode q. The
      options -h, --apropos, --version, -set, --nop, -progress <num> are accessible in all mcx modes. They are described in the mcx manual page.

      mcxquery [-abc <fname> (specify label input)] [-imx <fname> (specify matrix input)] [-o <fname> (output file name)] [-tab <fname>  (use  tab
      file)]  [--node-attr  (output  node degree and weight attributes)] [-vary-threshold <start,end,step,scale> (analyze graph at similarity cut-
      offs)] [-vary-knn <start,end,step,scale> (analyze graph for varying k-NN)] [-vary-ceil <start,end,step,scale>  (analyze  graph  for  varying
      ceil  reductions)]  [-report-scale  <num>  (edge	weight/threshold scaling)] [--no-legend (do not output explanatory legend)] [--reduce (use
      reduced matrix)] [--test-metric (test whether graph distance is metric)] [--test-cycle (test whether graph  contains  cycles)]  [-test-cycle
      <num>  (test  cycles,  report  cyclees)] [--vary-correlation (analyze graph at correlation cutoffs)] [--clcf (include clustering coefficient
      analysis)] [--eff (include efficiency criterion)] [-div <num> (cluster size separating value)] [--dim (report native format and dimensions)]
      [--edges	(output  all  arc weights, unsorted)] [--edges-sorted (output all arc weights, sorted)] [-edges-hist <start,end,step,scale (output
      arc weight histogram)] [--output-table (output logical tab separated table without key)] [-t <num> (number of threads to use)] [-icl <fname>
      (input  clustering)]  [-tf  spec	(apply tf-spec to input matrix)] [-h (print synopsis, exit)] [--apropos (print synopsis, exit)] [--version
      (print version, exit)]

  DESCRIPTION
      The main use of mcxquery is to analyze a graph at different similarity cutoffs. Typically this is done on a graph constructed using  a  very
      permissive threshold. For example, one can create a graph from array expression data using mcxarray with a very low pearson correlation cut-
      off such as 0.2 or 0.3. Then mcxquery can be used to analyze the graph at increasingly stringent	thresholds  of 0.25,  0.30,  0.35 .. 0.95.
      Attributes  supplied  across  different thresholds are the number of connected components, the number of singletons, adn statistics (median,
      average, iqr) on node degrees and edge weights.

  OPTIONS
      -abc <fname> (label input)
	The file name for input that is in label format.

      -imx <fname> (input matrix)
	The file name for input that is in mcl native matrix format.

      -o <fname> (output file name)
	Set the name of the file where output should be written to.

      -tab <fname> (use tab file)
	This option causes the output to be printed with the labels found in the tab file.

      --dim (report native format and dimensions)
	This will report the matrix format (either interchange or binary) and the matrix dimensions. For  a  graph  the  two  reported	dimensions
	should be equal.

      --edges (output all arc weights, unsorted)
      --edges-sorted (output all arc weights, sorted)
      -edges-hist <start,end,step,scale (output arc weight histogram)
	These options are fairly self documenting. The result of -edges-hist is a tab separated table of bin offsets and bin counts.

      --output-table (output logical tab separated table without key)
	This  option causes table output such as provided by --vary-correlation to be output in a logical tab-separated format rather than pretty-
	printed.

      -vary-threshold <start,end,step,scale> (analyze graphs at similarity cutoffs)
	All of start, end, step and scale must be integer numbers. From these a list of threshold is constructed, starting  from  start  /  scale,
	(start + step) / scale, (start + 2 step) / scale, and so on until a value larger than or equal to end / scale is reached.

      --vary-correlation (analyze graphs at correlation cutoffs)
	This  instructs mcxquery to use a threshold list suitable for use with graphs in which the edge weight similarities are correlations.  The
	list starts at 0.2 and ends at 0.95 using increments of 0.05.  If a different start or increment is required it can be achieved  by  using
	the -vary-threshold option.  For example, a start of 0.10 and an increment of 0.02 are obtained by issuing -vary-threshold 10,100,2,100.

      defopt{--no-legend}{do not output explanatory legend}
	For a fully parseable output format use --output-table.

      --clcf (include clustering coefficient analysis)
      --eff (include efficiency criterion)
	These  options	can be used to compute additional characteristics in the analysis of thresholded graphs with --vary-correlation and -vary-
	threshold. For large graphs these are relatively time-consuming to compute. More information and a reference for the efficiency  criterion
	can be found in clminfo(1).

      -vary-knn <start,end,step,scale> (analyze graphs for varying k-NN)
      -vary-ceil <start,end,step,scale> (analyze graphs for varying ceil reductions)
      --reduce (use reduced matrix)
	These options cause analysis of a graph as it is subjected to reductions across a range of parameters. Refer to mcxio(5) for a description
	of these reductions. The analyses starts at the end argument, and progresses towards the start argument using decrements of size step.	By
	default  the  reduction  is  always computed relative to the start matrix, i.e. the input matrix after -tf transformations have optionally
	been applied. Specifying --reduce causes this to change so that each new reduction is calculated relative to the reduction just computed.

	For graphs with ties among edge weights it may be useful to use -tf '#tug()'. This will add small perturbations to the	edge  weights  and
	have  the  effect  of  breaking ties.  By default perturbations are computed using the cosine between the vectors of neighbours of the two
	nodes incident to an edge.  This can be changed to a random perturbation with -tf '#rug()'.

      --test-cycle (test whether graph contains cycles)
      -test-cycle <num> (test cycles, report cyclees)
	Test whether the input graph contains cycles. With the second option nodes that are part of a cycle are output, up to a maximum  of  <num>
	nodes. Use <num>=-1 to output all such nodes.

      --test-metric (test whether graph distance is metric)
	This tests all possible triangle relationships.

      -report-scale <num> (edge weight / threshold scaling)
	The edge weights mean, average, and inter-quartile range, as well as the different threshold steps are all rescaled in the reported output
	to avoid printing of fractional part.  If -vary-threshold was supplied then scaling factor  specified  in  the	argument  is  used.   With
	--vary-correlation a scaling factor of 100 is used. Either can be overridden by using the present option.

      -div <num> (cluster size separating value)
	When  analyzing  graphs at different thresholds with one of the options above, mcxquery reports the percentage of nodes contained in clus-
	ters not exceeding a specified size, by default 3.  This number can be changed using the -div option.

      -tf <tf-spec> (transform input matrix values)
	Transform the input matrix values according to the syntax described in mcxio(5).

      -t <num> (number of threads to use)
	This has an effect only when using the -vary-knn option, and is only useful on multi-CPU machines.

      --node-attr (output node degree and weight attributes)
	Output is in the form of a tab separated file.	The option -icl can be used in conjuction.

      -icl <fname> (input clustering)
	Output for each node the size of the cluster it is in.	This option can be used in conjunction with --node-attr.

  SEE ALSO
      mcxio(5), and mclfamily(7) for an overview of all the documentation and the utilities in the mcl family.

  mcx q 12-068							      8 Mar 2012							    mcx q(1)
All times are GMT -4. The time now is 06:26 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy