Depending on the Operating System these might work.
Failing that I would carefully check that both files are unix text file format and not MSDOS. Also look for blank lines in file my.mrk which will cause a match with every line in my.map.
These sed's don't change anything but make line terminators visible. A unix format text file should just show lines terminated with a dollar sign.
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 REDHAT
make_unicodemap
MAKE_UNICODEMAP(1)MAKE_UNICODEMAP(1)NAME
make_unicodemap - construct a unicode map file for Samba
SYNOPSIS
make_unicodemap codepage inputfile outputfile
DESCRIPTION
This tool is part of the Samba suite.
make_unicodemap compiles text unicode map files into binary unicode map files for use with the internationalization features of Samba 2.2.
OPTIONS
codepage
This is the codepage or UNIX character set we are processing (a number, e.g. 850).
inputfile
This is the input file to process. This is a text unicode map file such as the ones found in the Samba source/codepages directory.
outputfile
This is the binary output file to produce.
SAMBA UNICODE MAP FILES
A text Samba unicode map file is a description that tells Samba how to map characters from a specified DOS code page or UNIX character set
to 16 bit unicode.
A binary Samba unicode map file is a binary representation of the same information, including a value that specifies what codepage or UNIX
character set this file is describing.
FILES
CP<codepage>.TXT
These are the input (text) unicode map files provided in the Samba source/codepages directory.
A text unicode map file consists of multiple lines containing two fields. These fields are :
o character - which is the (hex) character mapped on this line.
o unicode - which is the (hex) 16 bit unicode character that the character will map to.
unicode_map.<codepage> - These are the output (binary) unicode map files produced and placed in the Samba destination lib/codepage direc-
tory.
INSTALLATION
The location of the server and its support files is a matter for individual system administrators. The following are thus suggestions only.
It is recommended that the make_unicodemap program be installed under the $prefix/samba hierarchy, in a directory readable by all, write-
able only by root. The program itself should be executable by all. The program should NOT be setuid or setgid!
VERSION
This man page is correct for version 2.2 of the Samba suite.
SEE ALSO smbd(8)smb.conf(5)AUTHOR
The original Samba software and related utilities were created by Andrew Tridgell. Samba is now developed by the Samba Team as an Open
Source project similar to the way the Linux kernel is developed.
The original Samba man pages were written by Karl Auer. The man page sources were converted to YODL format (another excellent piece of
Open Source software, available at ftp://ftp.icce.rug.nl/pub/unix/ <URL:ftp://ftp.icce.rug.nl/pub/unix/>) and updated for the Samba 2.0
release by Jeremy Allison. The conversion to DocBook for Samba 2.2 was done by Gerald Carter
19 November 2002 MAKE_UNICODEMAP(1)