Showing results 1 to 11 of 11
Search took 0.01 seconds.
Posts Made By: mforeman
Forum: IT Professionals' Lounge Oct 31st, 2006
Replies: 0
Views: 4,435
Posted By mforeman
trying to remove extra white spaces in data file

I'm trying to remove extra white spaces between two fields with little luck. I can remove trailing and beginning spaces but not inbetween. Can someone help out. Here is what I have - I would like...
Forum: Perl Jan 25th, 2006
Replies: 2
Views: 6,519
Posted By mforeman
Re: Parsing a file for multiple info in PERL

Hi Jeff,

This looks great - I forgot about the elsif statement which works very well here.

Thanks for your quick response and help!
Mike
Forum: Perl Jan 24th, 2006
Replies: 2
Views: 6,519
Posted By mforeman
Question Parsing a file for multiple info in PERL

Hi,

I would like to gather two types of information and put into an array. For instance, I have a file with 4 lines of info for each entry - I want to get the name and occupation only for each...
Forum: Perl Dec 8th, 2005
Replies: 1
Views: 1,585
Posted By mforeman
Help Trouble Expanding a bus in PERL

Hi all,

I am trying to list out a bus as individual names.

For instance - When I come across a section in a file that lists a bus like this:

<busname>[0:2]

I would like to print out this:
Forum: Perl Dec 7th, 2005
Replies: 1
Views: 7,936
Posted By mforeman
Help trying to expand a bus in a file in PERL or UNIX

I am trying to list out a bus as individual names.

For instance - When I come across a section in a file that lists a bus like this:

[0:2] <busname>

I would like to print out...
Forum: Perl Nov 18th, 2005
Replies: 8
Views: 11,103
Posted By mforeman
Re: Search and remove in Perl

Thanks everyone, Both the Perl and AWK scripts are working. This really helps.

Mike
Forum: Perl Nov 16th, 2005
Replies: 8
Views: 11,103
Posted By mforeman
Search and remove in Perl

I am trying to remove entries if they contain the word "connected" in Perl. My file looks something like below. So In this example, I would like to search for "connected" and if found remove all 6...
Forum: Perl Oct 3rd, 2005
Replies: 5
Views: 2,527
Posted By mforeman
Re: problem with incrementing numbers in a file

Thanks again!

I spent way too much time unsuccessfuly trying to do what you just did. This is very simple and easy to understand (Now that I see it). :cool:

Again - I appreciate your...
Forum: Perl Oct 3rd, 2005
Replies: 5
Views: 2,527
Posted By mforeman
problem with incrementing numbers in a file

Hello,

I am now having problems combining a "foreach" or "while" command with a search command. Basically, I need to 1st search a file line by line for a string, then if that string is found to...
Forum: Perl Sep 28th, 2005
Replies: 5
Views: 2,527
Posted By mforeman
Re: problem with incrementing numbers in a file

Thanks you very much - I guess I had my variables mixed up.
I really appreciate your quick response!
Great site!

Cheers!
mforeman
Forum: Perl Sep 27th, 2005
Replies: 5
Views: 2,527
Posted By mforeman
problem with incrementing numbers in a file

Hello,

I’m trying to increment numbers in a file – for instance, I would like to change the below 3 lines in a file by incrementing the numbers by 2 (or whatever the user...
Showing results 1 to 11 of 11

 
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 5:17 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC