search for: grep

Displaying 20 results from an estimated 18560 matches for "grep".

Did you mean: greg
2016 Jul 15
0
[PATCH 3/3] mllib: tests: Add tests of the new Getopt module.
...getopt_tests.ml + +set -e +set -x + +t=./getopt_tests + +expect_fail () +{ + if "$@"; then + echo "$@" ": this command was expected to exit with an error" + exit 1 + fi +} + +# Program works. +$t + +# Flags added automatically by Common_utils. +$t | grep '^trace = false' +$t | grep '^verbose = false' + +$t -x | grep '^trace = true' +$t --verbose | grep '^verbose = true' + +# --help +$t --help | grep '^getopt_tests: test the Getopt parser' +$t --help | grep '^Options:' +$t --help | grep -- '-i, --i...
2009 Jan 09
5
grep : escape "*"
Dear R useRs, Sorry for this foolish question, but I can't find how to escape the * character when using grep : > grep("-", c("/3", "2*3", "4-4")) [1] 3 > grep("/", c("/3", "2*3", "4-4")) [1] 1 > grep("*", c("/3", "2*3", "4-4")) Erreur dans grep("*", c("/3",...
2020 Nov 19
6
grep ID /etc/os-release
...rib User Config directory debian nut /etc/nut/ opensuse upsd /etc/ups/ These will be used to produce more user-friendly tools and documentation for NUT. If you use some other distribution, could you report 1. How does the distribution identify itself? Suggestion: command grep ID /etc/os-release 2. Which non-root user is used to run the upsd and upsmon daemons? Suggestion: command ps -ef | grep upsd | grep -v -E "grep|cupsd" 3. Where does the distribution place the NUT configuration files? Suggestion 1: command locate upsd.conf | grep -E "^/etc...
2007 Oct 12
1
use ps -ef check service have some error.
...error. I test it . run puppetd --debug --tags apache2 ,get this message. ============= debug: Service[apache2](provider=debian): Executing ''ps -ef'' debug: Service[apache2](provider=debian): PID is 12062 ============ but the apache2 service is not running. and if I run ps -ef|grep apache2 ,may be get this meesage ============ m9.com2.i:~# ps -ef|grep apache2 m9.com2.i:~# ps -ef|grep apache2 m9.com2.i:~# ps -ef|grep apache2 root 12147 10643 0 17:16 pts/1 00:00:00 grep apache2 m9.com2.i:~# ps -ef|grep apache2 m9.com2.i:~# ps -ef|grep apache2 m9.com2.i:~# ps -ef|grep a...
2018 Jan 29
2
Run away memory with gluster mount
...full dumps. They're pretty big, >>> over 1G for all four. Also, I noticed some filepath information in >>> there that I'd rather not share. What's the recommended next step? > > Please run the following query on statedump files and report us the results: > # grep itable <client-statedump> | grep active | wc -l > # grep itable <client-statedump> | grep active_size > # grep itable <client-statedump> | grep lru | wc -l > # grep itable <client-statedump> | grep lru_size > # grep itable <client-statedump> | grep purge |...
2013 Mar 14
2
Grep with wildcards across multiple columns
...t;100000"; par.obj <- "000" par.fund <- glob2rx(gsub("0", "?", par.fund)) par.func <- glob2rx(gsub("0", "?", par.func)) par.obj <- glob2rx(gsub("0", "?", par.obj)) The problem occurs when I try to apply multiple greps across columns. I'd prefer to use data.table since it's so much faster than plyr and I have 159 different sets of parameters to run through, but I get the same error setting it up either way: # Doesn't work library(data.table) dt <- data.table(df) eval(parse(text=paste( "dt2...
2018 Aug 20
1
[PATCH] common/mltools: getopt: add Getopt.OptString
...\n" !ss; + printf "set_optstring = %s\n" (print_optstring_value !optstr) diff --git a/common/mltools/test-getopt.sh b/common/mltools/test-getopt.sh index 9db18fb44..58e2d0d59 100755 --- a/common/mltools/test-getopt.sh +++ b/common/mltools/test-getopt.sh @@ -52,6 +52,7 @@ $t --help | grep -- '-i, --int <int>' $t --help | grep -- '-ii, --set-int <int>' $t --help | grep -- '-v, --verbose' $t --help | grep -- '-x' +$t --help | grep -- '-o, --optstr <string>' # --version $t --version | grep '^getopt_tests 1\.' @@ -...
2012 May 24
3
[LLVMdev] make check-lit + grep escape characters
I just want to update test/Transforms/LowerSwitch/feature.ll that already uses grep. It uses grep + count, probably due to shorter construction. -Stepan. Eric Christopher wrote: > > On May 24, 2012, at 12:12 AM, Stepan Dyatkovskiy wrote: > >> Hi all. I found that if you want to use grep with escape characters in >> lit, you should pass it within the double s...
2007 Aug 28
7
grep
Not a CentOS specific question, although I am running grep on CentOS 4.3 but how would you grep out a series of lines in a file starting at a specific point. For instance, if I have a file named foo and I want to grep out the next 5 lines after the first and only instance of the string "bar" how could I pull that off? Thanks so much.
2018 Jan 30
1
Run away memory with gluster mount
..., > >>> over 1G for all four. Also, I noticed some filepath information in > >>> there that I'd rather not share. What's the recommended next step? > > > > Please run the following query on statedump files and report us the > > results: > > # grep itable <client-statedump> | grep active | wc -l > > # grep itable <client-statedump> | grep active_size > > # grep itable <client-statedump> | grep lru | wc -l > > # grep itable <client-statedump> | grep lru_size > > # grep itable <client-statedump...
2008 Nov 23
3
grep for asterisks "*"'s
Hello, I'm trying to determine if a string contains asterisks using the grep function. I know that this is slightly difficult because * is a special character in regular expressions and needs to be escaped. However, escaping the * using \ doesn't work either: if(grep("\*", model)>0) #does the model have an interaction { do something... } produces the f...
2018 Feb 02
3
Run away memory with gluster mount
...filepath information in >>>>>> there that I'd rather not share. What's the recommended next step? >>>>>> >>>>> >>>> Please run the following query on statedump files and report us the >>>> results: >>>> # grep itable <client-statedump> | grep active | wc -l >>>> # grep itable <client-statedump> | grep active_size >>>> # grep itable <client-statedump> | grep lru | wc -l >>>> # grep itable <client-statedump> | grep lru_size >>>> # grep...
2018 Feb 01
0
Run away memory with gluster mount
...;> over 1G for all four. Also, I noticed some filepath information in >>>>> there that I'd rather not share. What's the recommended next step? >>> >>> Please run the following query on statedump files and report us the >>> results: >>> # grep itable <client-statedump> | grep active | wc -l >>> # grep itable <client-statedump> | grep active_size >>> # grep itable <client-statedump> | grep lru | wc -l >>> # grep itable <client-statedump> | grep lru_size >>> # grep itable <clie...
2018 Feb 03
0
Run away memory with gluster mount
...there that I'd rather not share. What's the > recommended next step? > > > Please run the following query on statedump files and > report us the > results: > # grep itable <client-statedump> | grep active | wc -l > # grep itable <client-statedump> | grep active_size > # grep itable <client-statedump> | grep lru | wc -l > # grep itable <client-statedump> | grep lru_size >...
2010 Aug 03
5
grep with search terms defined by a variable
Hi, I have a good grasp of grep() and gsub() for finding and extracting character strings. However, I cannot figure out how to use a search term that is stored in a variable when the search string is more complex. #Say I have a string, and want to know whether the last name "Jannings" is in the string. This is done by...
2008 Oct 08
5
Using grep
Hi, I have a vector A with (200, 201, 202, 203, 204, ... 210) and a vector B with (201, 204, 209). Now I would like to get the position in vector A matches with the entries in vector B So what I want to have is the following result: [1] 2 5 10 I tried the following: grep(B, A) grep(c(B), A) A <- as.character(A) B <- as.character(B) grep(B, A) grep(c(B), A) and several other combinations. But nothing is giving me the right result?! Does anyone know why? Cheers, Mentor -- View this message in context: http://www.nabble.com/Using-grep-tp19881017p19881017.h...
2007 Aug 07
3
About grep
Hi,everyone. I have a problem when using the grep. for example: a <- c("aa","aba","abac") b<- c("ab","aba") I want to match the whole word,so grep("^aba$",a) it returns 2 but when I used it a more useful way: grep("^b[2]$",a), it doesn't work at all, it can't fin...
2018 Feb 21
1
Run away memory with gluster mount
...that I'd rather not share. What's the >> ??????????????????????? recommended next step? >> >> >> ??????????????? Please run the following query on statedump files and >> ??????????????? report us the >> ??????????????? results: >> ??????????????? # grep itable <client-statedump> | grep active | wc -l >> ??????????????? # grep itable <client-statedump> | grep active_size >> ??????????????? # grep itable <client-statedump> | grep lru | wc -l >> ??????????????? # grep itable <client-statedump> | grep lru_size...
2008 Nov 07
2
[PATCH/cygwin] Fix cygwin specific Makefile and a bug in the ssh-host-config script
...ssh-host-config --- contrib/cygwin/ssh-host-config 14 Jul 2008 02:12:54 -0000 1.22 +++ contrib/cygwin/ssh-host-config 7 Nov 2008 10:49:30 -0000 @@ -456,7 +456,7 @@ done # Check for running ssh/sshd processes first. Refuse to do anything while # some ssh processes are still running -if ps -ef | grep -v grep | grep -q ssh +if ps -ef | grep -v grep | grep -q 'sshd*$' then echo csih_error "There are still ssh processes running. Please shut them down first." -- Corinna Vinschen Cygwin Project Co-Leader Red Hat
2012 Jul 06
2
Maximum number of patterns and speed in grep
Hi, I am using R's grep function to find patterns in vectors of strings. The number of patterns I would like to match is 7,700 (of different sizes). I noticed that I get an error message when I do the following: data <- array() for (j in 1:length(x)) { array[j] <- length(grep(paste(patterns[1:7700], collapse = &qu...