05-13-2010
Want to grep exact pattern from file
Contents of my file is:
DI
DI[0]
DIR
PHI
I want to extract only DI. I am using below command
grep -w DI <file>
but it is also extracting DI[0].
Can i use any other command to extract exact pattern where '[' does not have special meaning
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi
Let say there is a file a.txt which contain number rows.
My intention is to find the number of occurences of a pattern. Let say the pattern is mdbase. then it should not count the occurences of mdbase1 or mdbase2 like this. When I tried to find it like
grep "/backup/surjya/mdbase"... (7 Replies)
Discussion started by: surjyap
7 Replies
2. Shell Programming and Scripting
I have a output like below:
A1
B2
C1
D3
A12
B4
A14
I am trying to find A1 by using grep
grep -i "A1"
But I got (4 Replies)
Discussion started by: anupdas
4 Replies
3. Shell Programming and Scripting
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)
Discussion started by: vchee
6 Replies
4. Shell Programming and Scripting
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)
Discussion started by: thibodc
1 Replies
5. Shell Programming and Scripting
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)
Discussion started by: JC_1
4 Replies
6. Shell Programming and Scripting
Im stumped on this one. Id like to echo into a .txt file all names for an xml feed in a huge folder. Can that be done?? Id need to echo <name>This name</name> in client.xml files.
$path="/mnt/windows/path"
echo 'recording names'
cd "$path"
for names in $path
than Im stuck on... (2 Replies)
Discussion started by: graphicsman
2 Replies
7. UNIX for Dummies Questions & Answers
I have a file with a lot of IP addresses in it named "address.list".
address.list looks something like this:
10.77.50.11
10.77.50.110
10.77.50.111
a bunch more addresses
For every IP address I need to grep another file to see if the IP address is in the other file:
for x in `cat... (5 Replies)
Discussion started by: squoggle
5 Replies
8. Shell Programming and Scripting
Hi ,
I have a file where i have modifed certain things compared to original file . The difference of the original file and modified file is as follows.
# diff mir_lex.c.modified mir_lex.c.orig
3209c3209
< if(yy_current_buffer -> yy_is_our_buffer == 0) {
---
>... (5 Replies)
Discussion started by: breezevinay
5 Replies
9. Shell Programming and Scripting
Hi,
I need to search the exact pattern in a file
file.txt
AUS.txt|AUS.chk
NZ.txt|NZ.ch
I am getting the result as
AUS.txt|AUS.chk with below code but i need only AUS.txt to be printed
grep AUS.txt file.txt
CODE tags also for data files (8 Replies)
Discussion started by: rohit_shinez
8 Replies
10. Shell Programming and Scripting
I am currently having some issues while trying to grep for a exact string inside a file. I have tried doing this from command line and things work fine i.e. when no match is found, return code=1 but when its done as part of my script it returns 0 for the same command - I dont know if there is an... (6 Replies)
Discussion started by: Ads89
6 Replies
LEARN ABOUT DEBIAN
ift-extract
I2M19058(1) GNU Info I2M19058(1)
NAME
ift-extract.info - ift-extract.info
Built-in iSight firmware extractor and patcher
ift-extract extract the Built-in iSight firmware from Apple driver and patch it to avoid some bugs in it. The firmware is then ready to get
loaded into the chip using ift-load.
* Menu:
Finding the Apple driver: see "Driver"
Command line options: see "Options"
See also "Copying"
1 Finding the Apple driver
ift-extract extract Built-in iSight firmware from Apple iSight driver. This driver is located at
/System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBVideoSupport.kext/Contents/MacOS/AppleUSBVideoSupport on your Mac OS X
root partition.
There is several version of this driver depending on driver version or host architecture (PowerPC or x86). Thus, ift-extract must determine
know the variant of the driver in order to properly extract the firmware.
Any AppleUSBVideoSupport file starting with those shipped with iMac G5 iSight must work. If not, please report unknown AppleUSBVideoSupport
at bugreport mail address with machine type and OS X version.
2 Command line options
`-a' `--apple-driver' Apple driver filename where to extract the firmware.
`-d' `--output-directory' The directory where to output the firmware. Defaults to /lib/firmware.
`-f' `--output-filename' The output firmware name. Defaults to isight.fw
`-?' `--help' Shows option help and quit.
Since ift-extract defaults to output the firmware to /lib/firmware/isight.fw, ensure you have the right to do so.
3 Copying
isight-firmware-tools is a project developped by A~Xtienne Bersac based on the work of Ronald S. Bultje, Johannes Berg and Ivan N. Zlatev.
This manual has been written by A~Xtienne Bersac.
Copyright (C) 2007 A~Xtienne Bersac <bersace@gmail.com>
perl v5.14.2 2012-01-09 I2M19058(1)