>\root\sandeep\log111.txt
>This files has a lot of text and one particulr line is .....
>##Date 24-07-2001
>
>Now
>1. I need to locate the line "##Date" in the above file
>2. I then need to store the date value "24-07.2001" in a variable.
Which language you are using? I assume Perl, because this is much simpler in
Perl.
1. Open the file for reading.
2. Search for the above string by reading every line. $_ variable
contains the current line. You can do this by using pattern searching
operations in Perl.
3. Once you find the above line then split that line at spaces and collect
the required date in a variable.
Here is the code which I would prefer to write.
open(RH,"</root/sandeep/log111.txt");
while(<RH>)
{
if($_ =~ /##Date/)
{
$flag = 1;
}
else
{
$flag = 0;
}
if($flag eq 1)
{
($str1, $str2) = split(/ /, $_);
$date = $str2;
}
}
Hope this is very much clear.
Regards,
Mayur
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
The dependency stuff in Linux is really frustrating . I mean when I
download some new software and try to install it , it shows some
dependency problems. To give you an example recently I downloaded a
a mail client called mahogany which had 2 dependencies. Now I downloaded
the reqd package to solve it. To my surprise that package had 5 unsolved
dependencies !
I gave up the idea thinking that I would be running around in circles.
I had same nightmarish experience when I tried to upgrade rpm 3 to rpm 4
Is there some distribution available which gets over this problem ?
Linux is so well organized in other ways then why this irrational
dependency thing . Why can't developers make standalone software ?
Hi all,
I went to the website to see if the group has meetings at regular intervals. Did not find info on the site.
Regards
Aditya Deshpande
Get Your Private, Free E-mail from Indiatimes at http://email.indiatimes.com
Buy Music, Video, CD-ROM and Audio-Books from http://www.planetmonline.com
I am trying to put together a list of monitors being used under linux
along with their refresh rates for quick reference. It would be great if
you could mail me the following information regarding your monitors.
Manufacturer
Model
Horizontal Refresh Rate
Vertical Refresh Rate
Max. Supported Resolution
Thank you,
Manish
I would like to know how I can type special characters, like the
copyright and trademark symbols, on the terminal. There must be
a set of key combinations documented somewhere. I believe these
characters fall within the ASCII range.
Please don't give emacs-specific solutions. I don't use emacs.
Tnx.
Manish
Dear Linuxers,
After installing Debian 2.2 and trying to start the X server, the X server
crashed giving out the error as
Fatal Server Error
Cannot open mouse(No such file or directory)
Somewhere I messed up with the mouse config, but I dont know how to config
mouse later after the installation of Debian system.
Does gpmconfig configures mouse? Anyways it gave me command not found.
Awaiting reply,
Regards,
Mayur
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
Kompalli SuryaPrakash wrote:
> 4> How can I install rpms in Debian or will i have to install thru
tars?
another way to install an rpm is to convert the rpm into a .deb file
using 'alien'... man alien for more info.
Ananth
______________________________________________________________________
Sur WebMailS.com, mon adresse de courrier électronique gratuite.
Service multilingue, sûr, et permanent. http://www.webmails.com/
Hi,
I have recently joined this mailing list.
I was going through the archives and i came across the message posted as follows:
>We poeple at NCST are developing one OpenType font for Devanagari. It
>is a Unicode font. The font has to be tested thoroughly and then we'll
>put it in public domain. It may take a week or two.
>We have modified FreeType font rendering library in X server so that
>it now supports OpenType font. We have also built Indic Script Shping
>Engine in the X server. It now works according to Unicode standard
> by Keyur Shroff
I wanted to know it this Otf font is available for X-widnows ?
and if so from where can i download that ?
regds
Manisha J