Search Results

Search: Posts Made By: rethink
10,419
Posted By rethink
thats very kind of your Tyler, thanks ..
thats very kind of your Tyler, thanks ..
10,419
Posted By rethink
Thanks Tyler, The situation unfortunately is that...
Thanks Tyler, The situation unfortunately is that this will form part of a larger perl script that will run as part of a schedule hence the question on integrating it into a script as opposed to...
10,419
Posted By rethink
Thanks Tyler , much appreciated ----------...
Thanks Tyler , much appreciated

---------- Post updated at 07:16 AM ---------- Previous update was at 05:12 AM ----------

Hi one further question if i may. I am trying to create a perl script...
10,419
Posted By rethink
perl : replace multiline text between two marker points
Hi there

I just wondered if someone could give me some perl advice

I have a bunch of text files used for a wiki that have common headings such as



---++ Title
blah

---++ Summary...
1,340
Posted By rethink
ok thanks, ill use wc -w instead
ok thanks, ill use wc -w instead
1,340
Posted By rethink
simple wc problem
Hi there, Im sure there is a simple explanation for this but I have a file like this with no balnk lines



peter
paul
john


I run the command


# var=`grep paul file.txt`
# echo...
4,193
Posted By rethink
thanks so much (it was driving me a little crazy)
thanks so much (it was driving me a little crazy)
4,193
Posted By rethink
evaluating a variable inside a variable
Hi there, i think im getting myself a little confused and need some help :wall:



I am reading in a bunch of variables to my script from an external file and need to validate that a value has...
5,956
Posted By rethink
perl: dereferencing a hash of hashes
Hi there, I am trying to dereference my hash of hashes but post dereferencing, it seems to lose its structure I am using Data::dumper to help me anaylise.

This is the code im using to build the...
Forum: Solaris 11-08-2011
3,910
Posted By rethink
thanks Guys
thanks Guys
Forum: Solaris 11-08-2011
3,910
Posted By rethink
Thanks, you mention you cannot share the...
Thanks, you mention you cannot share the underlying stack, but ive got this working with vlan tagged interfaces on the same physical interfacae

so for example on bge1

I can create for vlan...
Forum: Solaris 11-07-2011
3,910
Posted By rethink
Zones: Exclusive IP question
Hi there

when setting my zone config file up, I would naturally set 'set ip-type=exclusive' but I wanted to know, whether on the 'set physical=' line whether I could use a virtual interface that...
2,164
Posted By rethink
Thanks for that Pludi, #!/bin/perl use...
Thanks for that Pludi,

#!/bin/perl
use strict;
my $var = `ypcat -k netgroup.byuser| grep steven`
my @array = grep { /^users/ } split /[ ,]/, $var;

foreach (@array) {
print "$_\n";
}
...
2,164
Posted By rethink
perl, splitting out specific parts of the string
Hi there,

I have an output from a command like this


# ypcat -k netgroup.byuser| grep steven
steven.* users_main,users_sysadmin,users_global,users_backup_team

and wanted to pull the...
1,113
Posted By rethink
thanks (i guess it was simpler that i originally...
thanks (i guess it was simpler that i originally thought :))
1,113
Posted By rethink
script that will take input via a vi session
Hi there.

I am trying to write a script that will be used to record actions. eg



# ./worklog -a "Peformed a memory upgrade on this box after we experiened a DIMM failure"



at...
4,268
Posted By rethink
thanks all, the gpasswd command worked perfectly...
thanks all, the gpasswd command worked perfectly and methyl, thanks, you are right i should run pwck and grpck before hand, however you are wrong about the 'usermod -G' command above as that works...
4,268
Posted By rethink
Removing a user that doesnt exist from a group
Hi there, normally if I want to remove a user tht I have added to a specific group, i would do the following

this is what my group2 looks like

# grep group2 /etc/group...
Forum: Linux 07-25-2011
5,905
Posted By rethink
/etc/security/limits.conf NIS netgroup support
Hi there,

I am trying to set a ulimit max in the /etc/security/limits.conf against a NIS netgroup (which contains a whole bunch of users) instead of a local user or group.

so I have a NIS...
4,610
Posted By rethink
thanks for all your help guys
thanks for all your help guys
4,610
Posted By rethink
ok,I am testing this for use in sudo and...
ok,I am testing this for use in sudo and basically made the foolish assumption that because sudo works for things like

/[a-z][a-z][a-z][a-z][a-z][a-z][1-9]/

that it would work for richer...
4,610
Posted By rethink
regex question using egrep
Hi, i have a a bunch of directories that are always named with six lowercase alpha's and either one or two numeric's (but no more)

so for example names could be

qwerty1
qwerty9
qwerty10...
Forum: Solaris 04-11-2011
1,268
Posted By rethink
ZFS: devices have slipped out of their mirror
Hi there,

I had 6 disks configured as the ZFS equivalent of a RAID 1+0 (3 sets of mirrors concatenated)


pool: POOL1
state: ONLINE
scrub: none requested
config:

NAME ...
25,275
Posted By rethink
thank you so much panyam, is there any chance you...
thank you so much panyam, is there any chance you could explain what this sed statement is doing? is this equivalent to a back reference replace ?

if you dont get a chance then not to worry,...
25,275
Posted By rethink
thanks for replying panyam, the expected output...
thanks for replying panyam, the expected output would be 2 variables so for example with a string called

e1000g112001

I would have a

$DRIVER that has e1000g
$INSTANCE that has 112001
...
Showing results 1 to 25 of 117

 
All times are GMT -4. The time now is 07:36 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy