I tried searching the forum for this, and I read numerous suggestions here and even on other forums, and I cannot get this to want the way that I need it to. I tried grep -W / -f to no luck. Here is what I have. I have a list of file names-
I want to return only lines that contain FILE1-FILE1TEST exactly, not the other two hits, which for this test, I guess they can be considered, old data, or "versioned" data. here is what I have tried:
Any hints? I have a feeling grep is the right way to approach this but I could be incorrect. thanks
Hii,.,
Can some one guide me ...how to find a exact word or string using "grep" not a part of some other string.
say if i need 321 it should not give me 3210 nor 1321 it should only give me line containing string 321
Thanks and Regards,
Joy (2 Replies)
Hi Guys,
File is containing data
Col1 Col2
ListPrice List Price
Price Average Selling Price - Actual
ProjPrice Average Selling Price
ProjPrice Launch Price
ProjCost Cost
Now i need to print col2 on the basis of col1
i.e if i Pass Price it should display only "Average... (7 Replies)
hi!
i'm trying to get grep to do an exact match for the following pattern but..it's not quite working. I'm not too sure where did I get it wrong. any input is appreciated.
echo "$VAR" | grep -q '^test:]name'
if ; then
printf "test name is not found \n"
fi
on... (4 Replies)
Hi there,
I've search this forum and find this problem could have been solved by,
grep -ho "num=*" input_data
The input_data is,
1\11\num1=100\num2=200\newnum1=220\\@
however, what I have got is ,
num1=100
num1=220
how to get the exact string, (4 Replies)
Hi,
I have the following output from a file
zone "adm.test.com" {
abc
test1.db
}
zone "test.com" {
xyz
test2.db
}
zone "1.test.com.sg" {
1abc
test3.db
}
zone "3.test.com.uk" {
1xyz
test4.db
} (6 Replies)
QUESTION1:
How do you grep only an exact string. I am using Solaris10 and do not have any GNU products installed.
Contents of car.txt
CAR1_KEY0
CAR1_KEY1
CAR2_KEY0
CAR2_KEY1
CAR1_KEY10
CURRENT COMMAND LINE: WHERE VARIABLE CAR_NUMBER=1 AND KEY_NUMBER=1
grep... (1 Reply)
Hi All,
I have a text / log file which contains strings like meta777, 77, meta, 777. Now I want to write a script which can detect a string 'meta#777' in a text file & number of occurence of 'meta', number of #, number 7, 77, 777.
I'm using grep -e '77' filename but no luck. It is returning... (5 Replies)
I am attempting to grep an exact string from a series of files within a directory and append that output to the filename when it is present in the file. I've been after this all day with no luck. Thanks for your help in advance :wall:. (4 Replies)
Hi ,
am getting output file, it sontains the below values.
./hawk_DOM1_FIRST_ENV
./hawk_DOM2_SECOND_ENV
./hawk_DOM3_THIRD_ENV
Now I need to grep the word "DOM1_FIRST_ENV","DOM2_SECOND_ENV"
like that.
I tired with cut -d "_". Its not working with any deleimiter.
Can you please help to... (3 Replies)
As the title says I'm running a korn script in attempts to find an exact match in named.conf
finddomain.ksh
#!/bin/ksh
#
echo "********** named.conf ************"
file=/var/named/named.conf
for domain in `cat $1`
do
grep -n '"\$domain "' $file
done
echo "********** thezah.inc... (1 Reply)
Discussion started by: djzah
1 Replies
LEARN ABOUT DEBIAN
thinkfan
THINKFAN(1) thinkfan THINKFAN(1)NAME
thinkfan - A simple fan control program
SYNOPSIS
thinkfan [-hnqzD [-b BIAS] [-c CONFIG] [-s SECONDS] [-p [DELAY]]]
DESCRIPTION
Thinkfan can use temperature inputs and one PWM control file in /sys/class/hwmon or the Thinkpad-specific thinkpad_acpi interface in
/proc/acpi/ibm. If nothing is specified, it tries to use /proc/acpi/ibm.
WARNING: This program does only very basic sanity checking on the configuration. That means that you can set your temperature limits as
insane as you like.
Thinkfan has two modes of operation:
SIMPLE MODE
In simple mode, it uses only the highest temperature found in the system. That may be dangerous, e.g. for hard disks. That's why you
should provide a correction value (i.e. add 10-15 [u00B0]C) for the sensor that has the temperature of your hard disk (or battery...). See
the example config files for details about that.
COMPLEX MODE
In complex mode, temperature limits are defined for each sensor thinkfan knows about. Setting suitable limits for each sensor in your sys-
tem will probably require a bit of experimentation and good knowledge about your hardware, but it's the safest way of keeping each compo-
nent within its specified temperature range. See http://www.thinkwiki.org/wiki/Thermal_Sensors for details on which sensor measures what
temperature in a Thinkpad. On other systems you'll have to find out on your own. See the example configs to learn about the syntax.
CONFIGURATION
Some example configurations are provided with the source package. For detailed explanations please read the README file. If you installed
thinkfan from a distribution package, you may find them under /usr/share/doc or wherever your package manager puts documentation.
OPTIONS -h Show a short help message
-s Maximum seconds between temperature updates (default: 5)
-b Floating point number (0 ~ 20) to control rising temperature exaggeration (see README for why this is needed). Default 5.0
-c Load different configuration file (default: /etc/thinkfan.conf)
-n Do not become a daemon, log to both terminal and syslog
-q Be quiet (no status info on terminal)
-z Assume we don't have to worry about resuming from standby when using the sysfs interface (see README!)
-p Use the pulsing-fan workaround (for older Thinkpads). Takes an optional floating-point argument (0-10s) as depulsing duration.
Default 0.5s.
-D DANGEROUS mode: Disable all sanity checks. May damage your hardware!!
BUGS
If you have any problems with thinkfan, please go to the help forum at sf.net: http://sourceforge.net/projects/thinkfan/forums/forum/905019
thinkfan 0.8 October 2011 THINKFAN(1)