Sponsored Content
Full Discussion: Grep as a verb
The Lounge What is on Your Mind? Grep as a verb Post 302783533 by Yoda on Wednesday 20th of March 2013 03:20:56 PM
Old 03-20-2013
As a matter of fact in December 2003, the Oxford English Dictionary Online added draft entries for "grep" as both a noun and a verb.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

MEM=`ps v $PPID| grep -i db2 | grep -v grep| awk '{ if ( $7 ~ " " ) { print 0 } else

Hi Guys, I need to set the value of $7 to zero in case $7 is NULL. I've tried the below command but doesn't work. Any ideas. thanks guys. MEM=`ps v $PPID| grep -i db2 | grep -v grep| awk '{ if ( $7 ~ " " ) { print 0 } else { print $7}}' ` Harby. (4 Replies)
Discussion started by: hariza
4 Replies

2. UNIX for Dummies Questions & Answers

| help | unix | grep - Can I use grep to return a string with exactly n matches?

Hello, I looking to use grep to return a string with exactly n matches. I'm building off this: ls -aLl /bin | grep '^.\{9\}x' | tr -s ' ' -rwxr-xr-x 1 root root 632816 Nov 25 2008 vi -rwxr-xr-x 1 root root 632816 Nov 25 2008 view -rwxr-xr-x 1 root root 16008 May 25 2008... (7 Replies)
Discussion started by: MykC
7 Replies

3. UNIX for Dummies Questions & Answers

| help | unix | grep (GNU grep) 2.5.1 | advanced regex syntax

Hello, I'm working on unix with grep (GNU grep) 2.5.1. I'm going through some of the newer regex syntax using Regular Expression Reference - Advanced Syntax a guide. ls -aLl /bin | grep "\(x\)" Which works, just highlights 'x' where ever, when ever. I'm trying to to get (?:) to work but... (4 Replies)
Discussion started by: MykC
4 Replies

4. Shell Programming and Scripting

grep for certain files using a file as input to grep and then move

Hi All, I need to grep few files which has words like the below in the file name , which i want to put it in a file and and grep for the files which contain these names and move it to a new directory , full file name -C20091210.1000-20091210.1100_SMGBSC3:1000... (2 Replies)
Discussion started by: anita07
2 Replies

5. UNIX for Dummies Questions & Answers

Advanced grep'in... grep for data next to static element.

I have a directory I need to grep which consists of numbered sub directories. The sub directory names change daily. A file resides in this main directory that shows which sub directories are FULL backups or INCREMENTAL backups. My goal is to grep the directory for the word "full" and then... (2 Replies)
Discussion started by: SysAdm2
2 Replies

6. Shell Programming and Scripting

AWK/GREP: grep only lines starting with integer

I have an input file 12.4 1.72849432773174e+01 -7.74784188610632e+01 12.5 9.59432114416327e-01 -7.87018212757537e+01 15.6 5.20139995965960e-01 -5.61612429666624e+01 29.3 3.76696387248366e+00 -7.42896194101892e+01 32.1 1.86899877018077e+01 -7.56508762501408e+01 35 6.98857157014640e+00... (2 Replies)
Discussion started by: chrisjorg
2 Replies

7. UNIX for Dummies Questions & Answers

Bash - CLI - grep - Passing result to grep through pipe

Hello. I want to get all modules which are loaded and which name are exactly 2 characters long and not more than 2 characters and begin with "nv" lsmod | (e)grep '^nv???????????? I want to get all modules which are loaded and which name begin with "nv" and are 2 to 7 characters long ... (1 Reply)
Discussion started by: jcdole
1 Replies

8. Shell Programming and Scripting

Diff between grep .* file name and grep '.*' filename

Hi, Can anyone let me know what is difference between grep .* foo.c grep '.*' foo.c I am not able to understand what is exact difference. Thanks in advance (2 Replies)
Discussion started by: SasDutta
2 Replies

9. UNIX for Dummies Questions & Answers

Piping grep into awk, read the next line using grep

Hi, I have a number of files containing the information below. """"" Fundallinfo 6.3950 14.9715 14.0482 """"" I would like to grep for Fundallinfo and use it to read the next line? I ideally would like to read the three numbers that follow in the next line and... (2 Replies)
Discussion started by: Paul Moghadam
2 Replies

10. Shell Programming and Scripting

Inconsistent `ps -eaf -o args | grep -i sfs_pcard_load_file.ksh | grep -v grep | wc -l`

i have this line of code that looks for the same file if it is currently running and returns the count. `ps -eaf -o args | grep -i sfs_pcard_load_file.ksh | grep -v grep | wc -l` basically it is assigned to a variable ISRUNNING=`ps -eaf -o args | grep -i sfs_pcard_load_file.ksh |... (6 Replies)
Discussion started by: wtolentino
6 Replies
smujajgau(1L)															     smujajgau(1L)

NAME
smujajgau - Dictionary builder for use with jbofihe and cmafihe SYNOPSIS
smujajgau [-v] smujajgau dictionary-name [ file1 file2 ... filen ] DESCRIPTION
smujajgau is a program that reads a set of English definitions for Lojban words, and formats them into a presorted dictionary for use by the jbofihe and cmafihe programs. The dictionary is arranged for rapid access. OPTIONS
-v Show the program version and exit. dictionary-name This is the name of the formatted dictionary to be generated / modified. If the file exists, the definitions in the other file will be added, replacing existing entries where they clash. file1 .. filen The source files to be added. Lines beginning with # are treated as comments and discarded. Other lines should have one of the forms lojban:english lojban:english:comment SEE ALSO
jbofihe Checks Lojban grammar checker and provides English translations of the individual words. cmafihe Provides English translations of Lojban words in the input, without checking the grammar. Useful for getting a rough translation of grammatically invalid text. FILES
/usr/local/lib/jbofihe/smujmaji.dat This file is the default location where jbofihe and cmafihe expect to find the dictionary. It should therefore be the default first argument to smujajgau (unless the software was installed to an alternative location.) SPECIAL TRANSLATION FORMATS
Dictionary entries for brivla (gismu & lujvo) are expected to provide entries for each place of the word. The English translation should indicate the type of the word and the translation. The types are shown in the following table. In addition, the gloss for a translation X is shown depending on the context where it will arise in the translation. These defaults may be overridden. | || | | | Letter | Type || Noun | Verb | Qualifier | Tag -------+-------------++-----------------+-----------+-----------+----------------- A | Act || X-er(s) | X-ing | X-ing | X-er(s) D | Discrete || X(s) | being X | X | X S | Substance || X | being X | X | X P | Property || X thing(s) | being X | X | X thing(s) R | Rev. prop || thing(s) X | being X | X | things(s) X I | Idiomatic || thing(s) X-ing | X-ing | X-ing | thing(s) X-ing E | Event || X(s) | being X | X | X To specify the dictionary entries, the lojban should take the form 'brivlaN', where brivla is the word and N is the place number. One of the following may be suffixed to provide an override of the defaults in the table : n v a or t (for noun, verb, adjective, tag respec- tively.) As an example, 'nanmu' might have entries nanmu1:D;man nanmu1n:D;man/men whereas 'nandu' might have the definition nandu1:P;difficulty nandu2:I;have* difficulty nandu3:S;conditions for difficulty nandu3t:under conditions a '*' is used in the places where the affixed -s, -er and -ing should be applied (instead of putting them at the end of the English trans- lation, which is the default.) The 'places.dat' file included in the distribution shows many examples. Where a translation with an 'n' suffix exists, this is used in place of some other default forms in the table. For example, this allows special plural forms to be used in other places (e.g. tags.) The dictionary also supports some 'pattern' translations. This allows defaults to be automatically generated for forms ending in '-gau', defined in terms of the prefix. The 'Lojban' form for such patterns should be defined in the dictionary as '*Mprefix+N' or '*M+suffixN' for prefix forms (e.g. nu+) and suffix forms (e.g. +zmadu) respectively. M is the 'precedence' (5 highest, 0 lowest), defining the order in which prefix v suffix matches will be attempted. N is the place number as usual. The letters n, v, a or t may be suffixed to define a particular form if required, as for normal definitions. The 'English' form is either a standard definition or a place redirection. In standard definitions, the symbol % is used to mean the trans- lation of the rest of the lujvo form. Place redirections take the form @N, and mean that the lojban pattern form should be translated as place N of the rest of the lujvo. An example makes this clearer : zmadu. *2+zmadu1:R;more %1q *2+zmadu2:R;less %1q *2+zmadu2t:than *2+zmadu3:@2 *2+zmadu4:@3 *2+zmadu5:@4 *2+zmadu6:@5 The components are defined in terms of the full gismu forms, rather than rafsi (hence zmadu rather than mau). This is necessary because the form of a rafsi can change when components are added to or subtracted from a lujvo form. When the 'English' form is given as '-', it indicates that the next components inwards should be concatenated to form a new 'Lojban' form for lookup. This facility is only used for one thing so far - to handle the rafsi 'zil' followed by the rafsi for a cmavo of selma'o PA to puncture a place from the following form. An example (to delete the 1st place of a word, e.g. zilpavykla) : *4zi'o+1:- *4zi'o+2:- *4zi'o+3:- *4zi'o+4:- *4zi'o+5:- *4zi'o+pa+1:@2 *4zi'o+pa+2:@3 *4zi'o+pa+3:@4 *4zi'o+pa+4:@5 *4zi'o+pa+5:@6 The pattern forms are all defined in a file 'patterns' in the distribution. For cmavo, there are special forms used for certain selma'o, particular tenses. These allow dependence on the context in which the cmavo is used. Logical connectives are also defined in a special way. The file 'extradict' in the distribution provides examples. (More documentation is required!) BUGS
ju'oru'e so'imei (Surely there are many). REFERENCES
http://go.to/jbofihe Home page for the jbofihe project http://www.rrbcurnow.freeuk.com/lojban/ My Lojban page. http://www.lojban.org/ Home page of the Lojban community AUTHOR
Richard Curnow <rpc@myself.com> April 2000 smujajgau(1L)
All times are GMT -4. The time now is 03:43 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy