Thanks for your suggestions.
But the month can actually be anywhere in the phrase.
I'm searching around awk's gsub command for now but can't yet find something useful.
Using sed or awk, I need to display text between two words/characters. Below are two example inputs and the desired output. In a nutshell, I need the date-range value between the quotes (but only the first occurance of date-range as there can be more than one).
Example One Input:
xml-report... (1 Reply)
Hi
Please tell me how could i delete symbols, whitespaces, characters, words everything between two words in a line. Let my file is
aaa BB ccc ddd eee FF kkk xxx
123456 BB 44^& iop FF 999
xxx uuu rrr BB hhh nnn FF 000
I want to delete everything comes in between BB and FF( deletion... (3 Replies)
I am very new to C programming.
How could I write a C program that could count the characters, words, spaces, and punctuations in a text file?
Any help will be really appreciated. I am doing this as part of my C learning exercise.
Thanks,
Ajay (4 Replies)
hello,
i 'd like your help about a bash script which:
1. finds inside the html file (it is attached with my post) the code number of the Latest Stable Kernel,
2.finds the link which leads to the download location of the Latest Stable Kernel version,
(the right link should lead to the file... (3 Replies)
i need to replace the any special characters with escape characters like below.
test!=123-> test\!\=123
!@#$%^&*()-= to be replaced by
\!\@\#\$\%\^\&\*\(\)\-\= (8 Replies)
Hello. I've been thinking about how to go about this. I know I'm close but still does not work. I need to remove any word in that is not at least 2 characters long. I've removed all the non-alphabetic characters already (numbers included). Here's an example:
my $string = "This string is a... (4 Replies)
Hello,
I would like to change my setting in a file to the setting that user input.
For example, by default it is
ONBOOT=ON
When user key in "YES", it would be
ONBOOT=YES
--------------
This code only adds in the entire user input, but didn't replace it.
How do i go about... (5 Replies)
Hi All,
I need one help to replace particular words in file based on if finds another words in that file .
i.e.
my self is peter@king.
i am staying at north sydney.
we all are peter@king.
How to replace peter to sham if it finds @king in any line of that file.
Please help me... (8 Replies)
Discussion started by: Rajib Podder
8 Replies
LEARN ABOUT BSD
lookbib
LOOKBIB(1) General Commands Manual LOOKBIB(1)NAME
indxbib, lookbib - build inverted index for a bibliography, find references in a bibliography
SYNOPSIS
indxbib database ...
lookbib [ -n ] database
DESCRIPTION
Indxbib makes an inverted index to the named databases (or files) for use by lookbib(1) and refer(1). These files contain bibliographic
references (or other kinds of information) separated by blank lines.
A bibliographic reference is a set of lines, constituting fields of bibliographic information. Each field starts on a line beginning with
a ``%'', followed by a key-letter, then a blank, and finally the contents of the field, which may continue until the next line starting
with ``%''.
Indxbib is a shell script that calls /usr/libexec/refer/mkey and /usr/libexec/refer/inv. The first program, mkey, truncates words to 6
characters, and maps upper case to lower case. It also discards words shorter than 3 characters, words among the 100 most common English
words, and numbers (dates) < 1900 or > 2000. These parameters can be changed; see page 4 of the Refer document by Mike Lesk. The second
program, inv, creates an entry file (.ia), a posting file (.ib), and a tag file (.ic), all in the working directory.
Lookbib uses an inverted index made by indxbib to find sets of bibliographic references. It reads keywords typed after the ``>'' prompt on
the terminal, and retrieves records containing all these keywords. If nothing matches, nothing is returned except another ``>'' prompt.
Lookbib will ask if you need instructions, and will print some brief information if you reply ``y''. The ``-n'' flag turns off the prompt
for instructions.
It is possible to search multiple databases, as long as they have a common index made by indxbib. In that case, only the first argument
given to indxbib is specified to lookbib.
If lookbib does not find the index files (the .i[abc] files), it looks for a reference file with the same name as the argument, without the
suffixes. It creates a file with a '.ig' suffix, suitable for use with fgrep. It then uses this fgrep file to find references. This
method is simpler to use, but the .ig file is slower to use than the .i[abc] files, and does not allow the use of multiple reference files.
FILES
x.ia, x.ib, x.ic, where x is the first argument, or if these are not present, then x.ig, x
SEE ALSO refer(1), addbib(1), sortbib(1), roffbib(1), lookbib(1)BUGS
Probably all dates should be indexed, since many disciplines refer to literature written in the 1800s or earlier.
4.2 Berkeley Distribution October 22, 1996 LOOKBIB(1)