Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~833 People Reached
Favorite Tags
perl x 10
Member Avatar for mforeman

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 …

Member Avatar for winelover
0
219
Member Avatar for mforeman

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 …

0
25
Member Avatar for mforeman

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 …

Member Avatar for mforeman
0
100
Member Avatar for mforeman

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 …

Member Avatar for Rashakil Fol
0
150
Member Avatar for satimis

Hi folks, I'm prepared to write a simple perl scripts as follow There are 25 commands executed in following sequence[code]export LFS=/mnt/lfs mount /dev/hda6 /mnt/lfs mkdir -p $LFS echo $LFS /mnt/lfs (output) /usr/sbin/chroot "$LFS" /tools/bin/env -i HOME=/root TERM="$TERM" PS1='\u:\w\$ ' PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin /tools/bin/bash --login +h mknod -m 600 /dev/console c 5 1 …

Member Avatar for mforeman
0
184
Member Avatar for mforeman

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 …

Member Avatar for mforeman
0
155