Sponsored Content
Top Forums Shell Programming and Scripting Need best grep option or alternative Post 302397131 by malcomex999 on Sunday 21st of February 2010 03:22:33 AM
Old 02-21-2010
You might try this...

Code:
egrep "^[a-z]{1,8}$" infile

 

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

grep using -f option

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)
Discussion started by: tkbharani
3 Replies

2. UNIX for Dummies Questions & Answers

Grep alternative to handle large numbers of files

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)
Discussion started by: runnerpaul
6 Replies

3. Shell Programming and Scripting

--alternative option in getopt

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)
Discussion started by: padmisri
0 Replies

4. Shell Programming and Scripting

Alternative to grep

How to find a particular line in a file without using grep? (3 Replies)
Discussion started by: proactiveaditya
3 Replies

5. Solaris

Grep -A -B -C option

Hi, Does anyone know why -A/B/C is not working with grep on my solaris box? Thanks, Prince (5 Replies)
Discussion started by: john_prince
5 Replies

6. UNIX for Dummies Questions & Answers

alternative to the grep trick

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)
Discussion started by: pandeesh
11 Replies

7. Shell Programming and Scripting

Please suggest alternative to grep

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)
Discussion started by: niladri29
6 Replies

8. Shell Programming and Scripting

Alternative command to grep -w option

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)
Discussion started by: veeresh_15
7 Replies

9. Shell Programming and Scripting

Help with grep, or alternative

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
wnnatod(1)							   User Commands							wnnatod(1)

NAME
wnnatod - Convert an EUC text dictionary to a binary dictionary SYNOPSIS
/usr/bin/wnnatod [-s num] [-R] [-S] [-U] [-r] [-N] [-n] [-P filename] [-p filename] [-I] [-e] [-h filename] binary_dictionary_filename DESCRIPTION
wnnatod reads a Japanese EUC text dictionary from the standard input, converts it to a binary dictionary and writes it to the specified binary_dictionary_filename. OPTIONS
The following options are available. -s num Specifies the amount of memory to allocate (in words). num should be a little over the number of words in the dictionary. Normally you do not need to specify this option. The default is 70,000. If wnnatod fails, notifying memory shortage, retry the command with -s option. -R Converts the EUC text dictionary to a reverse-searchable binary dictionary (default). -S Converts the EUC text dictionary to a fixed-format dictionary. -U Converts the EUC text dictionary to an editable dictionary. -r Reverses the order of Kana and Kanji when converting the EUC text dictionary. -N Sets the dictionary password to "*". -n Sets the frequency password to "*". -P filename Specifies the file name of the dictionary password. -p filename Specifies the file name of the frequency password. -I Creates a system dictionary. -e Registers an entry's reading (Hiragana) as word in the binary dictionary if the reading and the word are the same (that is, the word consists of only Hiragana). With this option, you cannot convert a text dictionary to a reverse-searchable binary dictionary. -h filename Specifies the file name that contains part of speech information. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | |Availability |SUNWjwncu | +-----------------------------+-----------------------------+ SEE ALSO
wnndictutil(1), wnndtoa(1), wnnotow(1), wnntouch(1) SunOS 5.10 2 Mar 1998 wnnatod(1)
All times are GMT -4. The time now is 06:54 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy