Search Results

Search: Posts Made By: srinivasan_85
4,578
Posted By srinivasan_85
Perl IO vs GLOB symbols
Hi,

Can someone please clarify how we are able to use both IO and GLOB symbols of a package variable interchangeably?

Please consider the following code:
open(FH,"myfile") || die "Unable to...
31,330
Posted By srinivasan_85
Thanx
Thanx a lot for your help :)

-Srini-
31,330
Posted By srinivasan_85
Thanx a lot!
@YOGESH => Thanx for the suggestion. But since I don't have permissions to use CPAN modules, I am not able to try it out as well.
@CBKIHONG => Your solution works perfectly. Thanks a lot!
Also,...
31,330
Posted By srinivasan_85
Offering more info abt my scenario..
Hi,
Thanks for your quick suggestion. I grazed over the 'constant' pragma.
From the given link,
it's probably not correct to put a constant declaration inside of a conditional statement
My main...
31,330
Posted By srinivasan_85
#define in perl
Hi friends,

I am not sure if perl questions can be raised here. :rolleyes:
But I have a doubt if there is a way to do "#define" in perl, like in C.

Does anyone know if it is feasible (without...
18,659
Posted By srinivasan_85
Thanks
And the one-liners (perl/grep) you gave, work great (still I'm trying to decipher the logic behind them though).
Thanks for your help.

Thanks
Srini
18,659
Posted By srinivasan_85
Hi, I think I am mistaken. I had such a...
Hi,
I think I am mistaken.

I had such a requirement when I posted this question, but it was my curiosity which drove me to ask you guyz about the "command line" version of what my perl program...
18,659
Posted By srinivasan_85
Hi, Thanx for the suggestions. I understand...
Hi,
Thanx for the suggestions. I understand that the job can be done by different variations of scripts, but what I am eager about is "a single command/command pipe" which can do the job. If there...
5,963
Posted By srinivasan_85
See if this helps??
Hi,
I've seen something similar to this while using "gnu grep". If you simply grep for something, only those lines containing the search-pattern will be displayed. But if u issue "gnu grep -1...
18,659
Posted By srinivasan_85
Identify duplicate words in a line using command
Hi,
Let me explain the problem clearly:
Let the entries in my file be:
lion,tiger,bear
apple,mango,orange,apple,grape
unix,windows,solaris,windows,linux
red,blue,green,yellow...
4,594
Posted By srinivasan_85
Is it feasible..?
Hi Percy,
I wonder why the command
sed '/hashcode/ d' logfile > temp ; mv -f temp logfile
wont be useful..!

Is that because it takes time to perform 'sed' and 'mv' operations. But in this...
Forum: IP Networking 04-27-2007
46,812
Posted By srinivasan_85
Completion Ports
Hi,
I dont know which platform your are working on. But of the query,


I guess for solaris 10 (Sun OS 5.10), there is a new amenity called "Completion Ports". I wonder if this may be useful...
3,195
Posted By srinivasan_85
HTTP Server status
As far as i know, this happens only under two situations:
- http server may not be running.
- cgi is not supported (i dont think this is common)

Thanks
Srini
Forum: IP Networking 04-23-2007
4,251
Posted By srinivasan_85
Hi, I'm working on a solaris machine. The...
Hi,
I'm working on a solaris machine. The iptables idea is actually what i intended for. When I googled, I found that iptables are located at /etc/sysconfig/iptables. It is not present in my...
Forum: IP Networking 04-21-2007
4,251
Posted By srinivasan_85
More info..
I missed out the key word actually, please excuse me. Actually, by TRY_AGAIN, i mean SERVFAIL case. I want the DNS server to return SERVFAIL case irrespective of the query. I went through 'named'...
Forum: IP Networking 04-19-2007
4,251
Posted By srinivasan_85
More clarifications
Ah, I'm usually bad at explaining things. Sorry, but I'll give another try.
The actual need for me is to make the nameserver (dns_server) return 'Host not found, try again', irrespective of the IP...
Forum: IP Networking 04-18-2007
4,251
Posted By srinivasan_85
Simulate 'try again' case
Hi,
I was searching thro the topic and could not find a thread which zeroes in on the case i'm trying to simulate. Basically I have a need to simulate DNS Try again cases, without bringing the...
66,999
Posted By srinivasan_85
Thanks everyone
Hi all,
Thanks for your inputs.
@awk - the [:alnum] thing doesnt work out. It seems i have a older version of grep, since [:ascii] is also not working..
@reborg - your command indeed lists...
66,999
Posted By srinivasan_85
Doesnt work....
Thanks mschwage. But the command doesnt work out for me. Can you please let me know whether it worked out for u?

Thanks
Srini
66,999
Posted By srinivasan_85
Thanks Madhan!! That works fine.. (except for the...
Thanks Madhan!! That works fine.. (except for the "$length" instead of length)..
Can i know whether there is a command (instead of a script) to do this job?? an awk or perl or grep command??
...
66,999
Posted By srinivasan_85
Non-ascii character detection (perl or grep)
Hi,
Can I know how to grep for lines with non-ascii characters in a file?

If not grep, at least can we do it with command-line perl or awk? I tried the [:ascii] functionality of perl, but...
4,397
Posted By srinivasan_85
Telnet error!
Hi,
I am not sure what machine to connect :o
So I tried localhost and the machine name given by the command "hostname". I am quoting the responses from telnet: (IP address and hostname have...
31,094
Posted By srinivasan_85
Hope this helps!
Hi,
I am using xargs to do the job! I hope this is wat u expected :o

ls -la | awk '{print $NF}' | egrep '^\.' | xargs -I {} -t scp {} some_machine:~/destination_folder

~Srini
4,397
Posted By srinivasan_85
Thanks a lot everyone!
Hi all,
Thanks for your suggestions :) . I learnt a few concepts from your responses.
I didnt check this forum for a while, as I had finally resorted to generate my own directory listing...
8,161
Posted By srinivasan_85
Unix command
Hi,
I suppose the following simple unix command pipe will do the work:
cat filename | sort | uniq -c | sort -nr

In case of more than one word in a line, the pipe would change to:
cat filename...
Showing results 1 to 25 of 28

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