Search Results

Search: Posts Made By: mahalakshmi
8,014
Posted By mahalakshmi
Hi Era, Thanks for the reply. But...
Hi Era,

Thanks for the reply.

But first of all I need to identify the string inbetween the from and . and then need to replace the string identified with owner.

Because the string is not...
8,014
Posted By mahalakshmi
Find String in Perl
Hi all,

I am trying to search a SQL string and trying to find the table name in the query.

For e.g.

Select a,b,c,d,e,f from ITS.table where ITS.x=name

In the above string i need to...
13,495
Posted By mahalakshmi
FTP - To handle error while transferring files
Hi,
I had written an FTP script where in I loop through the directories and transfer the files from each and every directory of Windows to UNIX.

Now the problem is when

1. The...
2,037
Posted By mahalakshmi
Repeating variables in the code
Hi all,
I had written 3 KSH scripts for different functionalities. In all these 3 files there are some 30 variables in common. So I want to reduce the code by placing these variables in a...
25,861
Posted By mahalakshmi
It's working fine. I would like to know about the...
It's working fine. I would like to know about the -u -k optiosn in the sort command. Could you please explain.

thanks
25,861
Posted By mahalakshmi
to retrieve unique values
Hi all,
I have a 10.txt file. In this file 2 words are present by name Active and Inactive and these words are repeated 7000 times. I want to take the unique 2 words from this 7000 lines.

Thanks...
3,788
Posted By mahalakshmi
Ss I got it kumar.. $string1=<STDIN> if...
Ss I got it kumar..

$string1=<STDIN>
if ($string1 =~ m/(\d+)/) {
$cal=sprintf("%d\n",$1);
print "value o/p -> $cal\n"
}

Thank you and I thank each and everybody for their kind help..
3,788
Posted By mahalakshmi
Hi Kumar, It works. Can I assign that...
Hi Kumar,
It works. Can I assign that output into a vairable. Is it possible.?.. I need to assign the output to a variable.
3,788
Posted By mahalakshmi
Thanks aju_kup for the reply. But its not always...
Thanks aju_kup for the reply. But its not always static...its dynamic input..So I cant go by that method.
3,788
Posted By mahalakshmi
but its not working in a perl script..All these...
but its not working in a perl script..All these above command are working in the shell prompt but not in a perl program
3,788
Posted By mahalakshmi
Thanks kumar,...But will this work in a perl...
Thanks kumar,...But will this work in a perl program...As echo is used in this..
3,788
Posted By mahalakshmi
Remove O and preceeding zeros in a string
Hi all,
Can anybody help me out to write a program in perl to remove O and preceeding zeros.

for eg input is O0000123089 - output 123089

Thanks
Mahalakshmi.A
22,443
Posted By mahalakshmi
Thanks sharif. It works....
Thanks sharif. It works....
22,443
Posted By mahalakshmi
No both the commands or not working..its throwing...
No both the commands or not working..its throwing error .
22,443
Posted By mahalakshmi
Find files with 3 different extensions
Hi all,
From one directory I need to fetch only files of type *.xls,*.csv,*.txt. I tried the find . -name '*.txt,*.csv,*.xls' -print. But it throws me error. Please do help me on this.
...
23,624
Posted By mahalakshmi
Thanks all of you for all your replies. It all...
Thanks all of you for all your replies. It all worked fine and I am using the command which suits the requirement.

Regards
Mahalakshmi.A
23,624
Posted By mahalakshmi
Thanks sharif. Can u explain me about this cut...
Thanks sharif. Can u explain me about this cut command. What does f2 and d mean?.
23,624
Posted By mahalakshmi
Check file extension
Hi ,
I am FTPing the file. Once the file is FTPied I need to check whether that file currently transferred is of .xls and I need to convert the same to a flat file. What command to use to find...
17,072
Posted By mahalakshmi
I will invoke the program and pass the parameters...
I will invoke the program and pass the parameters to the same. But if I need to return back some output from that perl program to the ksh file. How can I do it?..

Thanks
17,072
Posted By mahalakshmi
Thanks a lot to anbu and also to aju_kup for the...
Thanks a lot to anbu and also to aju_kup for the explanations given. I will try out in the same way.

Thanks
Maha
17,072
Posted By mahalakshmi
Thanks for ur prompt reply anbu. Iam new to perl...
Thanks for ur prompt reply anbu. Iam new to perl programming. Can you explain me what is that my $par1 = shift means.

If i am going to pass parameters like perl verify.pl name age desig
and so...
17,072
Posted By mahalakshmi
I can invoke like perl verify.pl..But how to pass...
I can invoke like perl verify.pl..But how to pass parameters to the same.
17,072
Posted By mahalakshmi
Invoke perl program from Ksh
Hi all,
Can I invoke a perl script from Ksh script and pass parameters to the perl script.

Please do help me..

thanks
Maha
39,560
Posted By mahalakshmi
Split by comma
Hi all,


for i in `cat /tmp/tester.txt`
do
echo $i
done

The content of /tmp/tester.txt is as below

1001,asp
1002,java
1003,vc

Now when I try the above program it gives me a output...
30,078
Posted By mahalakshmi
Thanks for the replies now I have started...
Thanks for the replies now I have started learning UNIX ... Day by day I shd improve.

I have another doubt

find /home/psv/datasources/ -type f -print > file_name

this file_name which I am...
Showing results 1 to 25 of 38

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