Search Results

Search: Posts Made By: esham
1,766
Posted By esham
Sure. After long time, getting back to forums.....
Sure. After long time, getting back to forums.. Will follow the rules.:b:
1,766
Posted By esham
sed -r "s/^|$/'/g" records.config | sed "s/\s/':...
sed -r "s/^|$/'/g" records.config | sed "s/\s/': '/g"
'proxy.config.exec_thread.autoconfig': '1'
'proxy.config.exec_thread.autoconfig.scale': '1.5'
'proxy.config.exec_thread.limit': '2'...
1,766
Posted By esham
got it working.. sed -r "s/^|$/'/g"...
got it working..

sed -r "s/^|$/'/g" records.config | sed "s/\s/': '/g"
'proxy.config.log.squid_log_enabled: '1'
'proxy.config.log.logfile_dir: '/tmp/logs'
'proxy.config.log.squid_log_is_ascii:...
1,766
Posted By esham
sed for string manipulation
I have a file which contains contents like below

proxy.config.cluster.mc_group_addr 224.0.1.37
proxy.config.log.logging_enabled 3
proxy.config.log.squid_log_enabled 1

Need to modify to ...
11,751
Posted By esham
Sorry, i forgot to say that i am looking for...
Sorry, i forgot to say that i am looking for perl.

Let me explain the problem once again. Need to set the variable name when assigning the data.

for example, in my program i am trying to put...
11,751
Posted By esham
set array name dynamically
Hi,

I am trying to name a set of arrays dynamically named as @array_$i (The $i will mean that I obtain a set of arrays called:
@array_1
@array_2
@array_3 etc.

i tried various methods like
...
2,122
Posted By esham
Have a read here Rsync mirroring howto and FAQ...
Have a read here
Rsync mirroring howto and FAQ (http://sunsite.dk/info/guides/rsync/rsync-mirroring02.html)

Ahamed Shameer
netgiz.net - (http://www.netgiz.net)
1,660
Posted By esham
try this #! /usr/bin/perl use warnings; ...
try this

#! /usr/bin/perl
use warnings;
my $S1 = HExLLO_HOW_ARE_YOU;
my $S2 = HELLO_YU_ARE;

my @s1array = split(/_/,$S1);
my @s2array = split(/_/,$S2);

foreach (@s1array){
...
3,315
Posted By esham
Hi, Suppose you have the data in...
Hi,

Suppose you have the data in file:datavol

here is the code

#! /usr/bin/perl
use warnings;

open (DATAFILE, "+<datavol") or die $!;

my @mydatafile = <DATAFILE>;
my $data = join("...
2,254
Posted By esham
Try this #! /usr/bin/perl print "Enter...
Try this

#! /usr/bin/perl

print "Enter you name\n";
chomp ($name = <STDIN>);
print "Hii $name\n";



See the result

[ahamed@localhost general]$ ./datainput.pl
Enter you name
Ahamed...
3,480
Posted By esham
Try this perl code: #! /usr/bin/perl use...
Try this perl code:

#! /usr/bin/perl
use warnings;

open (DATAFILE, "<data2") or die $!;
while (<DATAFILE>){

my ($line) = $_;
$line =~ s/^(\S)|(\-)|(\.)|(\,)//g;
...
3,480
Posted By esham
Suppose this is your data [ahamed@localhost...
Suppose this is your data

[ahamed@localhost general]$ cat data2
1 560017039 575052020 22-11-2003 8,290.00 709545 100239050 11
2 560017006 575052020 13-01-2008 20,000.00 709545 100246770 11

...
2,070
Posted By esham
Consider this is your data: The script: ...
Consider this is your data:


The script:

#!/usr/bin/perl
use warnings;

open (DATAFILE, "<data1") or die $!;

while (<DATAFILE>){
my ($line) = $_;
if ($line =~...
113,075
Posted By esham
I want to do for the entire directory.. so...
I want to do for the entire directory..
so wrote something like this

#!/usr/bin/perl
for ( @ARGV ){
$filename = $_;
print $filename\n; `perl -pi -e '$_ = "" if ($. ==...
4,018
Posted By esham
can for for this also.. shameer ...
can for for this also..



shameer
www.openhat.org
49,725
Posted By esham
Please use "cp" command to do cd <to the...
Please use "cp" command to do
cd <to the directory where sript is present>
cp <file> /home/<loginname>/

esham
www.openhat.org
1,950
Posted By esham
Please make your question more clear esham ...
Please make your question more clear

esham
www.openhat.org
Forum: Cybersecurity 05-01-2007
15,092
Posted By esham
This page is not found. might be moved esham
This page is not found. might be moved

esham
6,280
Posted By esham
YUP, That worked great!!!!! Thanks!!!!! :)
YUP, That worked great!!!!!

Thanks!!!!! :)
6,280
Posted By esham
one more help, how to remove first dot.. ...
one more help, how to remove first dot..

iso.org.dod.internet.mgmt.mib-2.system.sysORLastChange
iso.org.dod.internet.mgmt.mib-2.interfaces.ifNumber...
6,280
Posted By esham
That really helped.. Thanks a lot
That really helped..
Thanks a lot
6,280
Posted By esham
Thanks for the output, but i am again in problem....
Thanks for the output, but i am again in problem. Putting the logic in a defferent way,

my file is like

.iso.org.dod.internet.mgmt.mib-2.system.sysORLastChange.0...
6,280
Posted By esham
I need to use the output as input for other...
I need to use the output as input for other function.
6,280
Posted By esham
yea, that worked. But that made the sequence in a...
yea, that worked. But that made the sequence in a problem. :-(
any other way
6,280
Posted By esham
formatting text
Hi,

I am having a file containing entries like:

.iso.org.dod.internet.mgmt.mib-2.system.sysName.0
.iso.org.dod.internet.mgmt.mib-2.system.sysLocation.0...
Showing results 1 to 25 of 108

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