Search Results

Search: Posts Made By: maheshsri
9,691
Posted By maheshsri
Perl Split Command usage
Hi,

I am trying to use the split commad to seperate string reading from file. but it dosent give me a correct result. can some body tell me what is the wrong in following scritp.

...
52,340
Posted By maheshsri
After I remove -f from the first line of the...
After I remove -f from the first line of the script (
#!/bin/sh -f) script wroked fine. I am confuse what is the problem with -f.

:confused:
52,340
Posted By maheshsri
Actually in my cd /ppscdr/cdrp2p/temp contains...
Actually in my cd /ppscdr/cdrp2p/temp contains files as follows,

p2p20061105_1010003_0101.unl
p2p20061105_1010003_0102.unl
..
..
..
p2p20061106_1010003_0101.unl
p2p20061106_1010003_0102.unl...
52,340
Posted By maheshsri
Using variable with cp command in bash shell
Hi,

I am trying to write script to copy some files(/ppscdr/cdrp2p/temp/) from one directory to another directory using shell script. see the script below,


#!/bin/sh -f
dir_name=20061105

...
5,667
Posted By maheshsri
Thanks for the support. Scrip is working fine...
Thanks for the support. Scrip is working fine after modification done according to your advice.
5,667
Posted By maheshsri
Perl sql table upload variable problem
Hi,

I wrote a perl script to create and upload data to a mysql data base. Please see the script as shown below,
#!/usr/bin/perl -w

#Defenetion of modules use in this scrpt
use CGI...
1,686
Posted By maheshsri
How to FTP fiels according to generated date
Hi,

I need to get some files from a server via ftp. normaly I use following scrip, it is worrking fine.

cd dir_name
ftp -v -n...
Forum: Solaris 03-12-2006
9,492
Posted By maheshsri
Apache start problem
Hi,

I have installed apache webserver on my solaris 10(x86). When I tried to start the server it gives following error,

ld.so.1: /usr/local/apache2/bin/httpd: fatal: libssl.so.0.9.8: open...
17,542
Posted By maheshsri
FTP Warning message ?
Hi,

I wrote a ftp script to get some files from one server. So files transer is working properly. But I observed following Warning message for every transaction,
Can somebod give me explanation...
3,222
Posted By maheshsri
Query string assingment for other variable in PERL
Hi friends,

I want to use query string value to another variable but it gives following error when I use it with print out command,

Insecure dependency in open while running with -T switch at...
3,257
Posted By maheshsri
DBD-Informix drive for windows version of perl
Hi,

I want to know where can I download the DBD-Informix drive for windows version of perl.

Regards,
Mahehs
:confused:
5,846
Posted By maheshsri
Hi Guys, Thanks for the help. After...
Hi Guys,

Thanks for the help.
After updating my perl module it is working fine.

Thaks,
mahesh :)
5,846
Posted By maheshsri
Connecting MySql throug Perl Script ?
Dear Friends,

I am tryin to connect to the myql through perl scrip. I have already installed mysql and DBI modules to my Perl.

There versions are as follows,

DBD-mysql [2.1026]...
46,871
Posted By maheshsri
How to Convert scientific notation to normal ?
Hell friends,

I wrote a script gets the summation of particular column using awk.
The awk output is given in scientific notation. How do I convert the scientific notation to normal.

My awk...
31,542
Posted By maheshsri
Friends, Thanks for the correction. I...
Friends,

Thanks for the correction.

I am rederectiong the file. given syntax is working fine.


Thanks,
Mahesh.
31,542
Posted By maheshsri
How to remove plank spaces at the end of lines
Hello friends,

I want to remove blank spaces at the end of lines. I use sed command to do this but it is not working correctly.
sed ‘s/ $//’ file_name

Can some body tell me what is the proper...
2,456
Posted By maheshsri
Is it possibe to do it without bc ?
Is it possibe to do this with out using bc ?

Regards,
Mahesn
2,456
Posted By maheshsri
coman syntax is not clear
Syntex is not clear. It is not working

variable3=`echo "scale=2;$variable1/$variable2|bc -l`

Regards,
Mahesh
2,456
Posted By maheshsri
variable1<$variable2 tesult is zero
Hi,

Thanks for the quick reply.

The given syntex is working fine. But problem is when the variable1<$variable2 the result gives as 0.

I tried to print it with printf aalso but it is not...
2,456
Posted By maheshsri
Aerometric between variables
Hi Guys,

I want to know how to do aerometric operations between two variable in bash shell and tc shell.

I have pre defined variables as follows,

vatiable1=12
variable2=45

I want to...
12,798
Posted By maheshsri
How to print number of lines with awk ?
Can some body tell me how to print number of line from a particular file, with sed. ?

Input file format

AAAA
BBBB
CCCC
SDFFF
DDDD
DDDD

Command to print line 2 and 3 ?

BBBB
CCCC

...
4,146
Posted By maheshsri
awk command format ?
Can some body tell me the meaning of '$1=$1' in the following syntax.

nawk -v RS='' -v OFS=',' '$1=$1' myFile.txt


Thanks,
Mahesh :)
1,838
Posted By maheshsri
Thanks for the help.. Please explain the code operation..
Hi friend,

Thank for the help.

It is working fine.
If possibel please explain me how this work.

Thanks,
Mahesh Fernando.
1,838
Posted By maheshsri
file formatiing with awk ?
Hi friends,

I have to change the file format. I am fighting with writing a script with awk to do it. My input file format is as follows,

AAA 123
AAA 200
BBB 320
BBB 400
CCC 120
CCC 460
...
5,673
Posted By maheshsri
Thanks for the help. limitation of awk ?
Hi Friend,

This is working fine.
One problem ?
My file size it about 48MB. Is there any limitation of file size in awk utility.

I get a error message as follows,


awk: Input line...
Showing results 1 to 25 of 31

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