Sponsored Content
Full Discussion: Searching the Forums
Contact Us Post Here to Contact Site Administrators and Moderators Searching the Forums Post 4082 by kristy on Wednesday 18th of July 2001 08:27:55 AM
Old 07-18-2001
Data Searching the Forums

Smilie

Hello,

Just wondering - why the four character minimum on search criteria? I'd like to search for threads containing discussion about sed. Tried sed* and stream editor with no results.

Smilie kristy
 

3 More Discussions You Might Find Interesting

1. What is on Your Mind?

other forums..

anyone here a member of any other NON computer related forums? i am very much into cars, and i own a 1986.5 toyota supra :D , so i am a member of a few mkiii (third generation supra) related forums: supraforums.com supramania.com mkiiitech.com (2 Replies)
Discussion started by: norsk hedensk
2 Replies

2. Solaris

Forums...

Hi all, Thanks for any posts and for reading. I was wondering if any of guys know of a open source style forum that I could get hold of that would be easily run on solaris. I know you can use many different varities of PHP/mysql/apache but is there anything a bit more simplier that could be... (0 Replies)
Discussion started by: B14speedfreak
0 Replies

3. Shell Programming and Scripting

searching a file with a specified text without using conventional file searching commands

without using conventional file searching commands like find etc, is it possible to locate a file if i just know that the file that i'm searching for contains a particular text like "Hello world" or something? (5 Replies)
Discussion started by: arindamlive
5 Replies
SUBST(1)						      General Commands Manual							  SUBST(1)

NAME
subst - substitute definitions into file(s) SYNOPSIS
subst [ -e editor ] -f substitutions victim ... DESCRIPTION
Subst makes substitutions into files, in a way that is suitable for customizing software to local conditions. Each victim file is altered according to the contents of the substitutions file. The substitutions file contains one line per substitution. A line consists of two fields separated by one or more tabs. The first field is the name of the substitution, the second is the value. Neither should contain the character `#', and use of text-editor metacharacters like `&' and `' is also unwise; the name in particular is best restricted to be alphanumeric. A line starting with `#' is a comment and is ignored. In the victims, each line on which a substitution is to be made (a target line) must be preceded by a prototype line. The prototype line should be delimited in such a way that it will be taken as a comment by whatever program processes the file later. The prototype line must contain a ``prototype'' of the target line bracketed by `=()<' and `>()='; everything else on the prototype line is ignored. Subst extracts the prototype, changes all instances of substitution names bracketed by `@<' and `>@' to their values, and then replaces the tar- get line with the result. OPTIONS
-e Substitutions are done using the sed(1) editor, which must be found in either the /bin or /usr/bin directories. To specify a dif- ferent executable, use the ``-e'' flag. EXAMPLE
If the substitutions file is FIRST 111 SECOND 222 and the victim file is x = 2; /* =()<y = @<FIRST>@ + @<SECOND>@;>()= */ y = 88 + 99; z = 5; then ``subst -f substitutions victim'' changes victim to: x = 2; /* =()<y = @<FIRST>@ + @<SECOND>@;>()= */ y = 111 + 222; z = 5; FILES
victimdir/substtmp.new new version being built victimdir/substtmp.old old version during renaming SEE ALSO
sed(1) DIAGNOSTICS
Complains and halts if it is unable to create its temporary files or if they already exist. HISTORY
Written at U of Toronto by Henry Spencer. Rich $alz added the ``-e'' flag July, 1991. BUGS
When creating a file to be substed, it's easy to forget to insert a dummy target line after a prototype line; if you forget, subst ends up deleting whichever line did in fact follow the prototype line. 25 Feb 1990 SUBST(1)
All times are GMT -4. The time now is 12:20 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy