Does the replavement need to mimic the numbers with equal numbers of letters, or is S.S.S.S sufficient? You might put your directories and letters in a two column list file for processing:
Hi All,
I have a file that I need to be able to find a pattern match on a line, search that line for a text pattern, and replace that text.
An example of 4 lines in my file is:
1. MatchText_randomNumberOfText moreData ReplaceMe moreData
2. MatchText_randomNumberOfText moreData moreData... (4 Replies)
Hello,
I really would appreciate some help with a bash script for some string manipulation on an SQL dump:
I'd like to be able to rename "sites/WHATEVER/files" to "sites/SOMETHINGELSE/files" within the sql dump.
This is quite easy with sed:
sed -e... (1 Reply)
Hi, i read couple of threads here on forum, and googled about what bugs me, yet i still can't find solution.
Problem is below.
I need to change this string (with sed if it is possible):
This is message text that is being quoted
to look like this:
This is message text that is being quotedI... (2 Replies)
Hi There...
I need to serach and replace a strings in a text file.
My file has; books.amazon='Let me read' and the output needed is
books.amazon=NONFOUND
pls if anybody know this can be done in script sed or awk.. i have a list of different strings to be repced by NONFOUND.... (7 Replies)
Hi All,
I need to serach and replace a strings between single quote in a file.
My file has :
location='/data1/test.log' and the output needed is
location='/data2/test_dir/test.log'
pls if anybody know this can be done in script sed or awk.
I have a script, but it's... (6 Replies)
I have a list of files all over a file system e.g.
/home/1/foo/bar.x
/www/sites/moose/foo.txtI'm looking for strings in these files and want to replace each occurrence with a replacement string, e.g.
if I find: '#@!^\&@ in any of the files I want to replace it with: 655#@11, etc.
There... (2 Replies)
Based on the forums i have tried with grep command but i am unable to get the required output.
search this value /*------
If that is found then search for temp_vul and print
and also search until /*------- and print new_vul
Input file contains:
... (5 Replies)
Hi,
I am looking for a shell script which serves the below purpose.
Please find below the algorithm for the same and any help on this would be highly appreciated.
1)set of strings need to be replaced among set of files(directory may contain different types of files)
2)It should search for... (10 Replies)
Hello,
I would like to replace all occurencies of long data types by others (coresponding int) using 'sed' in the extensive source code of a software package written for 32 bit CPUs.
I must use regular expressions to avoid wrong replacements like
s/unsigned]+long/ulong/gLeaving out... (2 Replies)
Discussion started by: Mick P. F.
2 Replies
LEARN ABOUT MINIX
refer
refer(1) User Commands refer(1)NAME
refer - expand and insert references from a bibliographic database
SYNOPSIS
refer [-ben] [-ar] [-cstring] [-kx] [-lm,n] [-p filename] [-skeys] filename...
DESCRIPTION
refer is a preprocessor for nroff(1), or troff(1), that finds and formats references. The input files (standard input by default) are
copied to the standard output, except for lines between `.[' and `.]' command lines, Such lines are assumed to contain keywords as for
lookbib(1), and are replaced by information from a bibliographic data base. The user can avoid the search, override fields from it, or add
new fields. The reference data, from whatever source, is assigned to a set of troff strings. Macro packages such as ms(5) print the fin-
ished reference text from these strings. A flag is placed in the text at the point of reference. By default, the references are indicated
by numbers.
When refer is used with eqn(1), neqn, or tbl(1), refer should be used first in the sequence, to minimize the volume of data passed through
pipes.
OPTIONS -b Bare mode -- do not put any flags in text (neither numbers or labels).
-e Accumulate references instead of leaving the references where encountered, until a sequence of the form:
.[
$LIST$
.]
is encountered, and then write out all references collected so far. Collapse references to the same source.
-n Do not search the default file.
-ar Reverse the first r author names (Jones, J. A. instead of J. A. Jones). If r is omitted, all author names are reversed.
-cstring Capitalize (with SMALL CAPS) the fields whose key-letters are in string.
-kx Instead of numbering references, use labels as specified in a reference data line beginning with the characters %x; By
default, x is L.
-lm,n Instead of numbering references, use labels from the senior author's last name and the year of publication. Only the first
m letters of the last name and the last n digits of the date are used. If either of m or n is omitted, the entire name or
date, respectively, is used.
-p filename Take the next argument as a file of references to be searched. The default file is searched last.
-skeys Sort references by fields whose key-letters are in the keys string, and permute reference numbers in the text accordingly.
Using this option implies the -e option. The key-letters in keys may be followed by a number indicating how many such
fields are used, with a + sign taken as a very large number. The default is AD, which sorts on the senior author and date.
To sort on all authors and then the date, for instance, use the options `-sA+T'.
FILES
/usr/lib/refer directory of programs
/usr/lib/refer/papers directory of default publication lists and indexes
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWdoc |
+-----------------------------+-----------------------------+
SEE ALSO addbib(1), eqn(1), indxbib(1), lookbib(1), nroff(1), roffbib(1), sortbib(1), tbl(1), troff(1), attributes(5)SunOS 5.10 14 Sep 1992 refer(1)