Search Results

Search: Posts Made By: Anjan1
1,163
Posted By Anjan1
Thanks Scrutinizer...
Thanks Scrutinizer (https://www.unix.com/members/302052697.html) it works now.
1,163
Posted By Anjan1
Print rows based on separator
For below lines in a file.

68078971 dance routine (jess far back corner) 13902786
368079527 dance routine 13902786
368081191 dance routine (jess far back) 13902786


I am...
3,592
Posted By Anjan1
its not printing entire contents in a file. If a...
its not printing entire contents in a file. If a file has 1,2,3,4,5,6,7.

When I use awk code given by ravindersingh its giving output as

awk -F, '{for(i=1;i<=NF;i++){{S=S?S OFS $i:$i}...
3,592
Posted By Anjan1
I have tried it in perl. ...
I have tried it in perl.



#!/usr/bin/perl

use warnings;
use strict;

my @result;

my $filename = "new_num.txt";

my $i;
unlink $filename;

#START:
while(<>) {

$_ =~ s/,/\n/g;
3,592
Posted By Anjan1
Print lines based on line number and specified condition
Hi,

I have a file like below.

1,2,3,4,5,6,7,8,9I would like to print or copied to a file based of line count in perl

If I gave a condition 1 to 3 then it should iterate over above file and...
4,263
Posted By Anjan1
thanks mjf it works
thanks mjf it works
4,263
Posted By Anjan1
Append result in the same line
I have a line like below

a,blank,12,24

I want to add (12+24) at the end of the line or any where in the same line line

output:
a,blank,12,24,36
680
Posted By Anjan1
OK, i am able do it.. However, can u also let me...
OK, i am able do it.. However, can u also let me know how to append like below:

if 44 matches in another file it should be appended to other file like below only to matched section say 44 append...
680
Posted By Anjan1
there is a file. I want the common numbers to...
there is a file. I want the common numbers to come like below not just sorting out. Outout should come like below.


44 is
-----------------
44 44
-----------------
55 is ...
680
Posted By Anjan1
Data report
I have file with entries like below. I will be better in shell script

44
55
66
44
66
77

I want data like
44 is
-----------------
44
44
-----------------

55 is
----------------...
9,181
Posted By Anjan1
Yes I am looking at gnuplot. I have installed and...
Yes I am looking at gnuplot. I have installed and checking. If you help that will be good.
9,181
Posted By Anjan1
Gnuplot in bash
Hi,

I want a graph plot using gnuplot for df -h command.

like filesystem, total size and avail size.

Thanks,
Anjan

---------- Post updated at 02:35 PM ---------- Previous update was at...
817
Posted By Anjan1
Retrieve values using soap moudle
Can someone tell me how to know the values used in soap api.

I need to know what values are used in soap xml.

Can we get all the values used in soap api.

I know that we can get it by using...
9,030
Posted By Anjan1
Unable to install module using cpan
Hi,

I am unable to install module using cpan. It says 407 Proxy Authentication Required



I did setup proxy server and given username and password in .bashrc file and apt.conf file.
...
1,368
Posted By Anjan1
I didn't got the output i requested.
I didn't got the output i requested.
1,368
Posted By Anjan1
I want output like this: The above command...
I want output like this:

The above command including all in one line
1,368
Posted By Anjan1
Remove multiple blanks
Hi,

I have data as below
And I want output as



Thanks
3,482
Posted By Anjan1
Thanks, can you tell me how to do it in perl.
Thanks, can you tell me how to do it in perl.
3,482
Posted By Anjan1
Can you tell me in shell how do it then? some...
Can you tell me in shell how do it then? some example
3,482
Posted By Anjan1
Actually, i have 10 hosts, 1 thread should do ssh...
Actually, i have 10 hosts, 1 thread should do ssh for 5 hosts and get uptime result and 2 thread should do ssh for other 5 hosts.

How can we achieve this?
3,482
Posted By Anjan1
Can someone also tell me how to limit number of...
Can someone also tell me how to limit number of forked processes in perl
3,482
Posted By Anjan1
fork processes
Hi,

How to count how many processes opened by fork function in perl.

Thanks
4,666
Posted By Anjan1
sorry, its having same subject, but they are not...
sorry, its having same subject, but they are not related..

---------- Post updated 02-28-12 at 04:32 AM ---------- Previous update was 02-27-12 at 11:18 AM ----------

Could someone please give...
4,666
Posted By Anjan1
#!/usr/bin/perl use strict; use...
#!/usr/bin/perl

use strict;
use Net::SSH::Perl;

open (FH, "<hosts1") || die "cant open $!\n";


my @childs;

my $num = 5;

for (1 .. $num) {

while (<FH>) {


print "$_";

my...
4,666
Posted By Anjan1
fork in perl
Hi,

I have a file which has some 50 hosts, I want to login to each host using ssh and execute any command. I am using fork function in perl. I am able to login to each host and execute the command...
Showing results 1 to 25 of 74

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