freelanceprogrammers.org Forum Index » Perl
Need Help Reading, Sorting, and Writing Data
Joined: 01 Apr 2002
Posts: 2
Need Help Reading, Sorting, and Writing Data
I have numerous .txt files that have various pieces of data I need to
sort.
What I am looking to do is to read in a file and search for specific
strings within the .txt file.
If the specific string is there, I want to write the string to a
specified file.
I have about 500 .txt files I need to run through and get this
information from.
Any help out there?
Joined: 18 Feb 2002
Posts: 7
Need Help Reading, Sorting, and Writing Data
--- In perl2@y..., pureprofit24 <no_reply@y...> wrote:
> I have numerous .txt files that have various pieces of data I need
to
> sort.
>
> What I am looking to do is to read in a file and search for
specific
> strings within the .txt file.
>
> If the specific string is there, I want to write the string to a
> specified file.
>
> I have about 500 .txt files I need to run through and get this
> information from.
>
> Any help out there?
==================================================
So, how far have you got with your Perl script?
==================================================
Joined: 01 Apr 2002
Posts: 2
Need Help Reading, Sorting, and Writing Data
I haven`t gotten very far at all. I went to the bookstore to look at
a few books on how to read and write to files and to search for
specific strings within a text file, but I didn`t have any luck
finding anything on the string searching part.
I`m not even sure that Perl is capable to perform this task.
Any help would be great. I`m not new to programming, but I`m very new
to Perl.
Thanks for your response.
--- In perl2@y..., webmaster_bmw <no_reply@y...> wrote:
> --- In perl2@y..., pureprofit24 <no_reply@y...> wrote:
> > I have numerous .txt files that have various pieces of data I
need
> to
> > sort.
> >
> > What I am looking to do is to read in a file and search for
> specific
> > strings within the .txt file.
> >
> > If the specific string is there, I want to write the string to a
> > specified file.
> >
> > I have about 500 .txt files I need to run through and get this
> > information from.
> >
> > Any help out there?
> ==================================================
> So, how far have you got with your Perl script?
> ==================================================
Joined: 18 Feb 2002
Posts: 7
Need Help Reading, Sorting, and Writing Data
--- In perl2@y..., pureprofit24 <no_reply@y...> wrote:
> I haven`t gotten very far at all. I went to the bookstore to look
at
> a few books on how to read and write to files and to search for
> specific strings within a text file, but I didn`t have any luck
> finding anything on the string searching part.
>
> I`m not even sure that Perl is capable to perform this task.
============================================================
Perl is absolutely perfect for searching and sorting strings.
It is what is was designed to do.
There are plenty of on-line tutorials and code snippets on the web.
Have a look at
www.perl.org
www.perl.com
www.perldoc.com
www.effectiveperl.com
www.lies.com/begperl
cgi.resourceindex.com
www.perlfect.com
www.cgi101.com
www.perl-news.com
Greg
All times are GMT
Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Freelace Website Designer - Customer web design and software building.
China Wholesale - Electronics Products
Character Studio - Tutorials and Help
China Wholesale - Electronics Products
Character Studio - Tutorials and Help







