Hi Motoslide,
Here is a complete answer to your question:
------------------------
#!/usr/bin/perl
$file = "textfile2";
open(DAT, $file) || die("File could not be opened");
@array1 = <DAT>;
close (DAT);
foreach $line (@array1)
{
chomp $line;
($variable1,$variable2) = split(/\}/, $line)...
Hi Motoslide,
Here is the answer to your question. Perl script handles file manipulation excellently.
$variable2 will have to be modified a bit to remove "{". I will do that later.
textfile2 contains your text output.
----------------------------------------------
#!/usr/bin/perl
$file =...
Hi All,
I am a unix admin, am familiar with unix and want to be proficient in scripting.
I love to take up challenges and surmount them hence I need a place/site where I can get a lot of scripting (preferably korn shell) exercises to solve.
I also do not mind being given an exercise by any...
Hi kHZ,
I bought the media. I did not know there was an option top-right at the download page through which you could buy the media, and that's exactly what I needed.
Thanks.
Hi Qatqat,
I am using scsi. I have however resolved the problem. I disabled the cdrom drive on vmware and started the linux guest OS again and it booted properly.
Thanks for your response which is not far from the solution.
Chike.
Hi,
I just finished installing redhat linux workstation on vmware server and it went fine. However on rebooting, it hangs after it says it is updating /etc/fstab.
Does anyone know what the problem is and how I can resolve it?
Thanks.
Chike.
Hi,
Please how or where do I get Solaris 10 (for x86) cds or dvds that are already burned and working. I have downloaded and burnt but it's not installing on vmware (I'm not sure where the problem is from though I believe it should be from the burning)?
Thanks.
Hi All,
I have seen this question in some ccna practice questions and the answers being given were different. I'd like to know which is correct since both seem correct to me:
Q. For a switch with a VTP mode of 'client', what is the VTP function of this switch?
A. Learn and save VTP...
Hi,
I created vlan 2 on a 1900 using "vlan 2 name sales" command. Next I added ports 1 and 2 to the vlan 2 using "vlan-membership static 2" command.
Please can someone tell me how to delete this vlan. I have tried this command but it comes up with "incomplete command":
1900(Config)#no vlan...
Hi All,
I am trying to configure seperate vlans on a 2950 and 1900 but I am having problems with the vlan command for 2950.
On 1900, I type
(config) vlan 2 name sales
..and it goes, but on 2950 if I type
(config) vlan 2
I get "incomplete command"
Please can anyone outline to me the...
...I just removed the "const" from the declarations and definitions of the operators:
bool ErrorType::operator<(ErrorType& right)
I think since *this is supposed to point to an object of ErrorType and ErrorType class does not contain a "const" a conversion could not be made since the...
There is no need for a bracket since the operator precedence will ensure correct evalution. I however put the bracket and the error persists.
The function head is the same as in the declaration.
I am carrying out operator overload for a class - ErrorType in this portion of my program.
Thanks...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.