Dear all
I have a file with more than one patters to search.Such as pattern.txt. I have to grep these patterns into a data file such as data.txt.how to do this ,i tried
/usr/xpg4/bin/grep -f <pattern_file> <data_file>
Its not working. why or how to search pattern file ? (3 Replies)
I am looking for a file with 'MCR0000000716214' in it. I tried the following command:
grep MCR0000000716214 *
The problem is that the folder I am searching in has over 87000 files and I am getting the following:
bash: /bin/grep: Arg list too long
Is there any command I can use that can... (6 Replies)
Hi,
i need to use --alternative option of getopt
for ex . getopt -o a:c: --alternative pw: -- "$@"
if i use like this, i am not getting any output.Please help me how to correct this.i need to have a combination of long and short options.But long options have to begin with - and not... (0 Replies)
Hi,
We used to use the below commands often.
ps -ef|grep bc
ps -ef|grep abc|grep -v grep
Both fairly returns the same result.
For example, the process name is dynamic and we are having the process name in a variable, how we can apply the above trick.
For example "a" is the... (11 Replies)
Hi Experts,
PFB my requirement:
I have a file (named file1) containing numbers like:
372846078543002
372846078543003
372846078543004
372846078543005
372846078543006
I have another file (nemed file2)where lines containing these numbers(present in file1) are present; Eg:
lppza087; <PERFB >... (6 Replies)
Hi All,
We have few scripts where we are using grep -w option to do exact matching of the pattern. This works fine on most of our servers.
But I have encounter a very old HP-UX System(HP-UX B.11.00) where grep -w option is not available.
This is causing my scripts to fail. I need to change... (7 Replies)
say I have a big list of something like:
sdg2000
weghre10
fewg53
gwg99
jwegwejjwej43
afg10293
I want to remove the numbers of any line that has letters + 1 to 4 numbers
output:
sdg
weghre
fewg
gwg
jwegwejjwej
afg10293 (7 Replies)
Discussion started by: Siwon
7 Replies
LEARN ABOUT DEBIAN
catod
CATOD(1) General Commands Manual CATOD(1)NAME
catod - To convert the text format of a dictionary to binary
format.
SYNOPSIS
catod [-s maxword ] [-R] [-r] [-e] [-S] [-U]
[-P dicpasswd ] [-p frepasswd ]
[-h cixingfile ] outfilename
DEFAULT PATH
/usr/local/bin/cWnn4/catod
DESCRIPTION
This command converts a dictionary from text format into binary format.
outfilename is the name of the binary format dictionary. If outfilename is not given, the output will be passed to the standard output
device(stdout).
The input file may be piped in by using the "<" command. For example,
catod basic.dic < basic.u
"basic.dic" here is the output binary format dictionary, while the "basic.u" is the input text format dictionary.
If the input text dictionary is not given, the input will be taken from the standard input(stdin). To end the input via standard input,
press ^D.
OPTIONS -s maxword
To specify the maximum number of words. Default is 70000.
-R To create a dictionary for both forward and reverse conversion. (Default).
-r To create a reverse format dictionary only for reverse conversion.
-e If the Hanzi inside the text dictionary contains characters such as space and tab, they will be compacted to special format.
(Default).
-S To create a static dictionary.
-U To create a dynamic dictionary.
-P dicpasswd
To specify the password for the dictionary.
If "-N" is used instead, the password of the dictionary will be set to "*".
-p frepasswd
To specify the password for the usage frequency file.
If "-n" is used instead, the password of the frequency file will be set to "*".
-h cixingfile
To specify the Cixing definition file.
NOTE
1. The parts in [ ] are options. They may be omitted.
2. The Pinyin and Zhuyin dictionary has the same format.
3. For details of the dictionary structure, refer to cWnn manual.
13 May 1992 CATOD(1)