No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
6 Posted Topics
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 lines associated with it. If not found, then move on to the next …
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 to make all the users aligned and thought I could remove the extra spaces …
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 entry. How can I get just the name and …
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: <busname>[0] <busname>[1] <busname>[2] Here is what I have - It goes …
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 this: <busname>[0] <busname>[1] <busname>[2] Any ideas in PERL or UNIX would be appreciated. …
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 gives). Mikef<20:40> JoeyS<23> Samt<14:39> So the end results should look like this: Mikef<22:42> JoeyS<25> Samt<16:41> I …
The End.
mforeman