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 OSF1
deroff
deroff(1) General Commands Manual deroff(1)NAME
deroff - Deletes neqn, nroff, and tbl constructs
SYNOPSIS
deroff [-i | -l] [-kpuw] [-ma | -me | -mm | -ms] file...
deroff [-i | -l] [-kpuw] -mm-ml file...
The deroff command reads the specified files (or standard input by default), removes all nroff requests, macro calls, backslash constructs,
eqn constructs (between and lines and between delimiters), and tbl descriptions, replacing many of them with spaces or blank lines, and
writes the remainder of the file to standard output.
OPTIONS
Suppresses processing of included files (.so and Keeps blocks of text specified by requests or macros; for example, the request. Sup-
presses processing of included files whose names begin with /usr/lib (such as macro files in /usr/lib/tmac). Interprets man macros only.
Interprets me macros only. Ignores mm macros and deletes mm list structures. The -mm option must be specified with this option. Inter-
prets ms and mm macros only. Interprets ms macros only. Performs special paragraph processing. Removes _ and in underlined and
boldfaced words. Automatically sets the -w option. Formats output into a word list, containing one word per line, with all other charac-
ters deleted.
In text, a word is any string that contains at least two letters and is composed of letters, digits, ampersands (&), and apostrophes (').
In a macro call, a word is a string that begins with at least two letters and contains a total of at least three letters. Delimiters are
any characters other than letters, digits, ampersands, and apostrophes.
Trailing ampersands and apostrophes are removed from words.
DESCRIPTION
The deroff command normally follows chains of included files (.so and requests) and processes those files. If a file was already included,
a naming it is ignored and a
deroff(1)