My requirement here is i need to read the file and check for the words
"OK to Proceed" and if it is available need to generate an indicator file called
"Go.txt"
IF else no file should not be generated.
Here one more thing to be considered is, file also contains "Not Ok to Proceed" sometimes if the process is not gone thru well.
Basically i need to generate an indicator file, if the process is OK by searching "Ok to Proceed" string or else not generating the file if it contains "Not ok to Proceed"
I am trying following code but not succesfull upto now
Here my problem is how to get only the string from the file to comapre with the variable.
Any suggestions or code will be appreciated
Thanks in advance,
San
Thanks in Advance
Sandeep
Last edited by Franklin52; 10-02-2009 at 04:24 AM..
Reason: Please use code tags!
Hi, guys. I have one question:
I need to search for a string in a file, and then extract another string from the file and assign it to a variable.
For example:
the contents of the file (group) is below:
...
ftp:x:23:
mail:x:34
...
testing:x:2001
sales:x:2002
development:x:2003
...... (6 Replies)
Hi Guys,
I am trying to write a perl script to search a string "Name" in the file "FILE" and also want to create a new file and push the searched string Name line along with 10 lines following the same.
can anyone of you please let me know how to go about it ? (8 Replies)
I need to search the file using strings "Request Type" , " Request Method" , "Response Type" and by using result set find the xml tags and convert into a single line?. below are the scenarios.
Cat test
Nov 10, 2012 5:17:53 AM
INFO: Request Type
Line 1.... (5 Replies)
I am having a text file which is having more than 200 lines.
EX:
001010122 12000 BIB 12000 11200 1200003
001010122 2000 AND 12000 11200 1200003
001010122 12000 KVB 12000 11200 1200003
In the above file i want to search for string KVB and add/replace... (1 Reply)
Dear All
I am having a text file which is having more than 200 lines.
EX:
001010122 12000 BIB 12000 11200 1200003
001010122 2000 AND 12000 11200 1200003
001010122 12000 KVB 12000 11200 1200003
In the above file i want to search for string KVB... (5 Replies)
Hi,
Need your help for this scripting issue I have. I am not really good at this, so seeking your help.
I have a file looking similar to this:
Hello, i am human and name=ABCD.
How are you?
Hello, i am human and name=PQRS.
I am good.
Hello, i am human and name=ABCD.
Good bye.
Hello, i... (12 Replies)
Hi Everyone,
I have a requirement in ksh where i have a set of files in a directory. I need to search each and every file if a particular string is present in the file, delete that line and replace that line with another string expression in the same file.
I am very new to unix. Kindly help... (10 Replies)
I want to search a small string in a large string and find the locations of the string. For this I used grep "string" -ob <file name where the large string is stored>. Now this gives me the locations of that string. Now how do I store these locations in a text file.
Please use CODE tags as... (7 Replies)
I have the below string which i need to compare with a file and replace this string in the file which matches closely. Can anyone help me on this.
string(Scenario 1)- user::r--,user::ourfrd:r--
String(Scenario 2)- user::r--
File
****
# file: /local/Desktop/myfile
# owner: me
# group:... (6 Replies)
Discussion started by: sarathy_a35
6 Replies
LEARN ABOUT ULTRIX
weave
WEAVE(1) General Commands Manual WEAVE(1)NAME
weave - translate WEB to TeX
SYNOPSIS
weave [-x] webfile[.web] [changefile[.ch]]
DESCRIPTION
This manual page is not meant to be exhaustive. The complete documentation for this version of TeX can be found in the info file or manual
Web2C: A TeX implementation.
The weave program is used to create a TeX file for viewing a Web program. It takes appropriate care of typographic details like page lay-
out and the use of indentation, italics, boldface, etc., and it supplies extensive cross-index information that it gathers automatically.
The command line arguments are the same as for tangle except for the option: -x says to omit the index, module name list, and table of con-
tents pages. (A CONTENTS.tex file will still be written when the TeX file is processed, however, unless some macros in webmac.tex are
redefined.)
The output TeX file name is formed by adding .tex to the root of the Web file name.
There are several macros that probably should be redefined by the programmer at the beginning of the Web file. It is a good idea to set
itle to the name of the program. And, to cause output of only changed modules, one can say letmaybe=iffalse (usually as the first
change in the change file).
ENVIRONMENT
The environment variable WEBINPUTS is used to search for the input files, or the system default if WEBINPUTS is not set. See tex(1) for
the details of the searching.
FILES
$TEXMFMAIN/tex/plain/base/webmac.tex
TeX macros used by weave output.
SEE ALSO tangle(1) for references, authors, and other information.
Web2C 2012 7 April 2010 WEAVE(1)