grep pattern in a file not working. please help...
Guys, I have my.mrk file as follows:
and my.map file:
I need grep lines in the my.map file according to lines that appear in my.mrk file so to have results like:
I tried
but it returns every line in my.map rather than what I wanted. I can't figure out what happens but it used to work on my other machine. My current shell /bin/csh.
I have a set of .gz files. I need to grep a pattern and need to find out the file in which that pattern occurs. zgrep in not available in my server.Any other options available for searching a pattern without unzipping the .gz files. (2 Replies)
Contents of my file is:
DI
DI
DIR
PHI
I want to extract only DI. I am using below command
grep -w DI <file>
but it is also extracting DI.
Can i use any other command to extract exact pattern where '[' does not have special meaning (4 Replies)
Hi,
I have two files say xxx.txt and yyy.txt. xxx.txt is with list of patterns within double quotes. Eg.
"this is the line1"
"this is the line2"
The yyy.txt with lot of lines. eg:
"This is a test message which contains rubbish information just to fill the page which is of no use. this is... (3 Replies)
*****************************************
Right now i have this current system.
I have two files say xxx.txt and yyy.txt. xxx.txt is with list of patterns within double quotes. Eg.
"this is the line1"
"this is the line2"
The yyy.txt with lot of lines. eg:
"This is a test message which... (7 Replies)
I'm trying to read in a list of text strings from a file, then use that string as a grep pattern. I am getting partial matching, which I believe stems from the linefeed at the end of each line of text. What I have now is:
while read line; do echo $line; grep -i $line... (1 Reply)
Hi All,
Need help on this
I have 2 files
one file file1 which has several entries as :
define service{
hostgroup_name !host1,!host5,!host6,.*
service_description check_nrpe
}
define service{
hostgroup_name !host2,!host4,!host6,.*
service_description check_opt
}
another... (2 Replies)
I have two sets of data
accept.txt is the list of 50 words
Tom
Anne
James
...
and I have a file01.txt which has the frequency of words which I got it using
cat main.file | tr -d '' | tr ' ' '\n' | tr 'A-Z' 'a-z' | sort | uniq -c | sort -n -r > file01.txt
so my file now looks like this... (2 Replies)
Hi
I'm new to the forum, so I'd apologize for any error in the format of the post.
I'm trying to find a file content in another one using:
grep -w -f file1 file2
file1
GJA7
TSC
file 2
GJC1 GJA7
TSC1 TSC (11 Replies)
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)
I have a file "file1" that contains several ip address , and the "file2" contains several records , each line in file2 contains somewhere the ip address that i am searching in the file1
I use the unix command grep -w
for i in `cat file1`
do
grep -w "$i" file2 >> file3
done
... (9 Replies)
Discussion started by: knijjar
9 Replies
LEARN ABOUT X11R4
repertoiremap
REPERTOIREMAP(5) Linux User Manual REPERTOIREMAP(5)NAME
repertoiremap - map symbolic character names to Unicode code points
DESCRIPTION
A repertoire map defines mappings between symbolic character names (mnemonics) and Unicode code points when compiling a locale with
localedef(1). Using a repertoire map is optional, it is needed only when symbolic names are used instead of now preferred Unicode code
points.
Syntax
The repertoiremap file starts with a header that may consist of the following keywords:
comment_char
is followed by a character that will be used as the comment character for the rest of the file. It defaults to the number sign (#).
escape_char
is followed by a character that should be used as the escape character for the rest of the file to mark characters that should be
interpreted in a special way. It defaults to the backslash ().
The mapping section starts with the keyword CHARIDS in the first column.
The mapping lines have the following form:
<symbolic-name> <code-point> comment
This defines exactly one mapping, comment being optional.
The mapping section ends with the string END CHARIDS.
FILES
/usr/share/i18n/repertoiremaps
Usual default repertoire map path.
CONFORMING TO
POSIX.2.
NOTES
Repertoire maps are deprecated in favor of Unicode code points.
EXAMPLE
A mnemonic for the Euro sign can be defined as follows:
<Eu> <U20AC> EURO SIGN
SEE ALSO locale(1), localedef(1), charmap(5), locale(5)COLOPHON
This page is part of release 4.15 of the Linux man-pages project. A description of the project, information about reporting bugs, and the
latest version of this page, can be found at https://www.kernel.org/doc/man-pages/.
GNU 2016-07-17 REPERTOIREMAP(5)