04-26-2013
Great!
![Thumbsup Smilie](https://www.unix.com/images/smilies/thumb.gif)
Thanks for posting the problem.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello
I need to search for a mult-line text in a file exfile1 and replace that text with another text. The text to search for is in exfile2 and the replacement text is in exfile3.
I work with kornshell under AIX and need to do this with a lot of files. (the file type is postscript and they need... (10 Replies)
Discussion started by: marz
10 Replies
2. Shell Programming and Scripting
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)
Discussion started by: Crypto
4 Replies
3. UNIX for Dummies Questions & Answers
I have a text file with following content (3 lines)
filename : output.txt
first line:12/12/2008
second line:12/12/2008
third line:Y
I would like to know how we can replace 'Y' with 'N' in the 3rd line keeping 1st and 2nd lines same as what it was before.
I tried using cat output.txt... (4 Replies)
Discussion started by: santosham
4 Replies
4. UNIX for Dummies Questions & Answers
i am very new to UNIX
plz help me in this scenario
i have two text files as below
file1.txt
name=Rajakumar.
Discipline=Electronics and communication.
Designation=software Engineer.
file2.txt
name=Kannan.
Discipline=Mechanical.
Designation=CADD Design Engineer.
... (6 Replies)
Discussion started by: kkraja
6 Replies
5. UNIX for Advanced & Expert Users
Hi,
I need help. I have XML file as below
<a n="infoLevel">
<v s="true"/>
</a>
<a n="localAddr">
<v s="server.host.com"/>
</a>
<a n="ListenPort">
<v s="21111"/>
</a>
I need to find variable "ListenPort" in line and then replace... (4 Replies)
Discussion started by: rdtrivedi
4 Replies
6. Shell Programming and Scripting
Hello,
I am trying to search and replace but I don't know how to do it. My simple knowlegde in search and replace using sed is not helping me at all.
File:
its a cause value #22: dfg ggg
Cause value #1: aasfa fasdf
asfa value #22: affg gggg
Basically i want to replace the... (6 Replies)
Discussion started by: balan1983a
6 Replies
7. Shell Programming and Scripting
Dear All,
i want to search particular string and want to replance next line value.
following is the test file.
search string is
tmp,???
,10:1 "???" may contain any 3 character it should remain the same and next line replace with ,10:50
tmp,123 --- if match tmp,??? then... (3 Replies)
Discussion started by: arvindng
3 Replies
8. UNIX for Dummies Questions & Answers
Hi,
Ive spent ages trying to find an explanation for how to do this on the web, but now feel like I'm :wall:
I would like to change each occurence (there are many within my script) of the following:
to
in Vim. I know how to search and replace when it is just single lines... (2 Replies)
Discussion started by: blueade7
2 Replies
9. Shell Programming and Scripting
My text file looks like below
.
.
.
abcdefghi
jklmnop
$Bad_ptrq_GTS=rcrd_ip.txt
$Bad_abcd_REJ=rcrd_op.txt
ghijklm
$Bad_abcd_TYHS=rcrd_op.txt
abcgd
abcdefghi
jklmnop
$Bad_ptrq_GTS=rcrd_ip.txt (2 Replies)
Discussion started by: machomaddy
2 Replies
10. Shell Programming and Scripting
All, I appreciate any help you can offer here as this is well beyond my grasp of awk/sed...
I have an input file similar to:
&LOG
&LOG Part: "@DB/TC10000021855/--F"
&LOG
&LOG
&LOG Part: "@DB/TC10000021852/--F"
&LOG Cloning_Action: RETAIN
&LOG Part: "@DB/TCCP000010713/--A"
&LOG
&LOG... (5 Replies)
Discussion started by: KarmaPoliceT2
5 Replies
FLAME(1) General Commands Manual FLAME(1)
NAME
flame -- reply to Usenet News posting automatically
SYNOPSIS
flame [options] [filename]
DESCRIPTION
Flame is a AI tool providing an automated method for replying to articles posted to Usenet News. Special care is paid to allow the user to
specify the type of reply he desires. The following options are supported by flame:
-- Take input from stdin.
-x regexp
Crosspost to all newsgroups matching regexp.
-n number
Post this reply number times.
-b Reply in BIFF MODE.
-d Delay response until original posting expires.
-m Misdirect to a random Author.
-r ROT13 quotes from original posting.
-g regexp
Reply to all messages in newsgroups matching regexp.
-A Call the Author Assh*le in 12 languages.
-B Bait the Author.
-C Accuse the Author of communist leanings.
-D Denigrate the Author.
-E Picks apart the Author's educational background.
-F Accuse the Author of fascist leanings.
-G Post using Greek insult module.
-H Accuse the Author of homophobic leanings.
-I Question the Author's intelligence.
-J Accuse the Author of purchasing Japanese imports.
-K Accuse the Author of working for the KGB, MOSSAD, CIA, or MI5 as appropriate.
-L Post using Latin insult module.
-M Insult the Author's mother.
-N Accuse the Author of Neo-Nazi leanings.
-O Quote obscure references proving falsehood of the posting.
-P Question the Author's parentage.
-Q Accuse the Author of deviant sexual practices.
-R Accuse the Author of racist leaning.
-S Accuse the Author of sexist leanings.
-T Accuse the Author of cross dressing.
-U State that the Author just doesn't understand anything.
-V Pretend sympathy for Author's virgin sensibilities.
-W Accuse the Author of voting for George Bush.
-X Prepend obscene adjectives wherever syntactically correct.
-Y Accuse the Author of PLO membership.
-Z Accuse the Author of Zionist leanings.
ENVIRONMENT
The environment variable FLAME_TYPE can be set to any combination of the above parameters, and will be used as the default flame type to
generate.
The environment variable OBSCENE points to a file containing miscellaneous obscene adjectives for the -X option above.
MACROS
Macro Support will be added to the next release of flame.
AUTHOR
Unknown
FILES
.lastflame
This file contains the number of the last article flamed. Used when flameing an entire newsgroup.
.prefflame
This file contains the user's preferred flames.
.altflame
This file contains alternate phrasing of some of the more standard flames. Used to keep the program from flaming itself.
SEE ALSO
rn(1), more(1), newsrc(5), readnews(1), Pnews(1), Rnmail(1)
DIAGNOSTICS
Self Documenting.
BUGS
Occasionally, flame will turn on the user, and flame all outgoing postings. When this happens, the best thing to do reinstall your news
software and flame.
FLAME(1)