No, It's not giving the expected result. It gives me all the files in that directory.
I think it should Because when we issue command
It gives the line which doesn't contain the word "TRACK" so
would also gives all the file names because only few lines in file contains the word "TRACK". But I need to discard those file which contain the word "TRACK". grep with -vl option is not working.
Though I am using one script for this purpose. The script is like
Last edited by siba.s.nayak; 11-19-2010 at 07:33 AM..
i think grep can only find char in files matching a pattern without any wildcards like ? correct? It works with * but not ?.
how can i write a small c program to find words in a file, like a list, that matches a pattern like ma?y, b??con, etc if grep doesn't understand ? in a pattern search. if... (1 Reply)
Hi Guys,
Can you help with the shell script:
I would like to search a fixed width pattern from a file
say for each line from a fixed position and lenght it has to return all rows from the file.
Example:
To search the third column for "def" it has to return 1 and 4th rows only
... (2 Replies)
I have a problem in searching a specific pattern in c files.
My requirement:
I have to find all the division operator in all cfiles.
The problem is, the multi line comments and single line comments will also have forward slash in it.
Even after avoiding these comments also, if both... (6 Replies)
can anybode tell me ? I want to search for a pattern present in a whole directory and subdirectories's files containg " crat"
I tried
grep -r "crat" */* ;
is it right ? (3 Replies)
Hi All,
Please can someone assist in the script I have made that searches a pattern in a file and delete the whole line containing the pattern.
#!bin/sh
# The pattern that user want to add to the files
echo "Enter the pattern of the redirect"
read value
# check if the user has... (1 Reply)
in my file i have somthing likre
kpk_12
kpk_1
kpk_1.tcl
kpk_3.tcl
kpk
kpk
kpk
i want search only kpk i am using this cmd /kpk ...results it is showing all . any cmd is ther other then this to search exactword in this example kpk it shoulsnot show kpk_* etc
Thanks in Advance
... (2 Replies)
Hi,
Can you please help me out here? I am trying develop a search pattern to extract certain words from the two strings below.
I want to extract ericsson_msc_live from the 2 strings and then the date, which is a part of the filename just before the .jar extension.
... (19 Replies)
Hi there,
Looking forward to your advice for the below:
I have a file which contains 2 paragraphs related to a particular pattern. I have to search for those paragraphs from a log file and then print a particular line from those paragraphs.
Sample:
I have one file with the fixed... (3 Replies)
Discussion started by: danish0909
3 Replies
LEARN ABOUT PLAN9
face
FACE(6) Games Manual FACE(6)NAME
face - face files
DESCRIPTION
The directory /lib/face contains a hierarchy of images of people. In that directory are subdirectories named by the sizes of the corre-
sponding image files: 48x48x1 (48 by 48 pixels, one bit per pixel); 48x48x2 (48 by 48 pixels, two bits per pixel); 512x512x8 (512 by 512
pixels, eight bits per pixel); 512x512x24 (512 by 512 pixels, twenty-four bits per pixel (3 times 8 bits per color)). The large files
serve no special purpose; they are stored either as bitmaps (see bitmap(6)) or as picture files (see picfile(9.6). The small files are the
`icons' displayed by seemail (see mail(1)); their format is special.
Icons are stored as text, one line of the file to one scan line of display. Each line is divided into 8-bit, 16-bit, or 32-bit big-endian
words, stored as a list of comma-separated hexadecimal C constants, such as:
0x9200, 0x1bb0, 0x003e,
This odd format is historical and the programs that read it are somewhat forgiving about blanks and the need for commas.
The files /lib/face/*/.dict hold a correspondence between users at machines and face files. The format is
machine/user directory/file.ver
The machine is the domain name of the machine sending the message, and user the name of the user sending it, as recorded in /sys/log/mail.
The directory is a further subdirectory of (say) /lib/face/48x48x1, named by a single letter corresponding to the first character of the
user names. The file is the name of the file, typically but not always the user name, and ver is a number to distinguish different images,
for example to distinguish the image for Bill Gates from the image for Bill Joy, both of which might otherwise be called b/bill. For exam-
ple, Bill Gates might be represented by the line
microsoft.com/bill b/bill.1
If multiple entries exist for a user in the various .dict files, seemail chooses the highest pixel size less than or equal to that of the
display on which it is running.
Finally, or rather firstly, the file /lib/face/.machinelist contains a list of machine/domain pairs, one per line, to map any of a set of
machines to a single domain name to be looked up in the .dict files. The machine name may be a regular expression, so for example the
entry
.*research.att.com astro
maps any of the machines in AT&T Research into the shorthand name astro, which then appears as a domain name in the .dict files.
SEE ALSO mail(1), tweak(1), bitmap(6)FACE(6)