I want to search for a word from the root directory using grep command.
I am searching for a word called batch in cd /vol directory.The vol directory has so many sub-directories and I want to see all the files having the name as batch.
This what I tried ..
/vol/ % grep -i *batch*
But it is... (4 Replies)
Hello Everybody,
I have files; yyyymmdd.log which the data look like this;
"Txid=9426043&MsgTxt=Thankyou&UserId=john&Password=jh2501"
"Txid=9426150&MsgTxt=Thankyou&UserId=john&Password=jh2501"
.
.
.
"Txid=9426200&MsgTxt=Thankyou&UserId=john&Password=jh2501"
Question 1:
How to... (3 Replies)
hello people,
All my servers have 4 mounts with this norme. For example, if my hostname is siroe.
df -h | grep `hostname`
/dev/dsk/c1t3d0s6 404G 399G 800M 100% /siroe3
/dev/dsk/c1t2d0s6 404G 399G 800M 100% /siroe2
/dev/md/dsk/d6 20G 812M 19G ... (3 Replies)
Instead of using the following command
#dmesg | grep -v sendmail | grep -v xntpd
How can I use just one grep -v and give both arguments.
Please suggest
thanks (4 Replies)
Hello,
Is there a way in grep to remember patterns?
For eg: int a,b,c,d,a;
If a variable is declared twice, like in the previous example, I should be able to print only those lines.
Is there a way to print only the lines where the variable name occurs more than once, using grep... (1 Reply)
i have files with "DOMAINSOLVER ACMS" with any number of spaces in between the two words on its own line and i can find it with the following:
grep -c "DOMAINSOLVER* ACMS" $FILENAMEbut i need to exclude any lines matching: "$DOMAINSOLVER". i've tried a variety of quoting and escaping with no luck.... (4 Replies)
Hello all,
I'm trying to grep the string "scott" from all files whose names are like srvr*.log and that were created "Nov 15"...I'm trying the following command but throws an error message...seems like the syntax is incorrect..
grep scott < ls -l srvr*.log|grep "Nov 15"
Thanks for your... (9 Replies)
My grep returns a row of data like this:
75=20130130;60=074338;61=985;511=55473883;452=115439;62=196;267=1;
Is there a way for the grep to only return 60="something" and 511="something" ?
Thanks in advance. (10 Replies)
Discussion started by: Carl2013
10 Replies
LEARN ABOUT NETBSD
grep-excuses
GREP-EXCUSES(1) General Commands Manual GREP-EXCUSES(1)NAME
grep-excuses - search the testing excuses files for a specific maintainer
SYNOPSIS
grep-excuses [options] [maintainer|package]
DESCRIPTION
grep-excuses downloads the update_excuses.html file and greps it for the specified maintainer name. The libwww-perl package is required
for this script. If no name is given on the command line, first the environment variable DEBFULLNAME is used if it is defined, and failing
that, the configuration variable described below is used.
OPTIONS --no-conf, --noconf
Do not read any configuration files. This can only be used as the first option given on the command-line.
--wipnity, -w
Get information from <http://release.debian.org/migration/>. A package name must be given when using this option.
--help Show a brief usage message.
--version
Show version and copyright information.
CONFIGURATION VARIABLES
The two configuration files /etc/devscripts.conf and ~/.devscripts are sourced in that order to set configuration variables. Command line
options can be used to override configuration file settings. Environment variable settings are ignored for this purpose. The currently
recognised variable is:
GREP_EXCUSES_MAINTAINER
The default maintainer, email or package to grep for if none is specified on the command line.
SEE ALSO devscripts.conf(5).
AUTHOR
Joey Hess <joeyh@debian.org>; modifications by Julian Gilbey <jdg@debian.org>.
DEBIAN Debian Utilities GREP-EXCUSES(1)