Search Results

Search: Posts Made By: karthickrn
2,738
Posted By karthickrn
Help on Perl web automation
Hi All,

Could experts in the forum suggest me a good book to create web based applications using Perl.

Much thanks in advance

Karthick
1,624
Posted By karthickrn
Hi Pludi, Thanks for your reply ..... ...
Hi Pludi,

Thanks for your reply .....

So I need to use

my $sth= $dbh->prepare( qq{select * from www});

$worksheet->set_column("A:A", 8);...
1,624
Posted By karthickrn
Perl Experts - Need your help
Hi All,

I need to take a dump of a table and load into excel and send as an attachment and for this am using a Perl script.
I know the usual way of doing this by writing all the fields next to...
1,828
Posted By karthickrn
Perl Experts - Need your help
Hi All,

I am using ingres in perl
select count(*) rec from user_tables where table_name = 'abc';
I want to use the alias variable 'rec' and check the value if >0 insert values else create table....
3,052
Posted By karthickrn
This command will change the permission for all...
This command will change the permission for all specified files but I want to find files with this permission -r-xr-xr-x and change it to -r-xr-xr-- for a group of files
3,052
Posted By karthickrn
Change permission for a set of files
Hi there,

I want to change from this permission -r-xr-xr-x to -r-xr-xr-- for a set of files under unix.

Can someone help me to go-about doing this in one shot.

Cheers,
RN
6,414
Posted By karthickrn
Need to calculate elapsed time
Hi there,

How to calculate the elapsed time in minutes for a particular job run under unix.

I tried the following
$ ps -efo user,pid,etime,comm,args | grep myscript | grep -v grep | awk -F" "...
2,147
Posted By karthickrn
Got it worked using nawk. Thanks for all...
Got it worked using nawk.

Thanks for all responders
2,147
Posted By karthickrn
Thanks for your reply. Pls find below the...
Thanks for your reply.

Pls find below the sample.
...
2,147
Posted By karthickrn
Need help on awk command
My awk command failed saying "awk: record `000450^2009^1^13^001...' too long". I've an alternate way of making this to work using grep but i would like to know is there something in 'awk' to be...
3,235
Posted By karthickrn
How to store the flat file in an excel sheet
Hi,

I need to automate a script.
The process in the script is as follows
Running the script abc.ksh
The report is stored in xyz (flat file)
Need to store the flat file content in an excel...
3,774
Posted By karthickrn
Great franklin .... thanks for your help
Great franklin .... thanks for your help
3,774
Posted By karthickrn
This command removes all the lines leaving...
This command removes all the lines leaving C^E^2008^ZAT08^14.

My welcome1 file should have a content that does not have 'M' in the first col and '2' in the fifth col.

also it should not have...
3,774
Posted By karthickrn
I need an o/p which does not have the one's...
I need an o/p which does not have the one's highlighted below in red as per my command.
S^E^2008^12G43^7
C^E^2008^ZAT08^14
S^E^2008^ZAR48^22
M^E^2008^0TL69^2
S^E^2008^FCB67^30
3,774
Posted By karthickrn
pls find below welcome content ...
pls find below welcome content

S^E^2008^12G43^7
C^E^2008^ZAT08^14
S^E^2008^ZAR48^22
M^E^2008^0TL69^2
S^E^2008^FCB67^30
3,774
Posted By karthickrn
Nothing is happening ...the command is just...
Nothing is happening ...the command is just redirecting the contents of welcome to welcome1 without any difference.
3,774
Posted By karthickrn
Can any good awk'er resolve this issue?
awk -F^ '{ if ((($1 != "M") && ($5 != "2")) || (($1 != "S") && ($5 != "7"))) print $0}' welcome > welcome1


The "&&" and "||" in the above command is not working with awk.

When I run the above...
34,053
Posted By karthickrn
Can you try working of this below command. ...
Can you try working of this below command.

awk -F^ '{ if ((($1 != "M") && ($5 != "2")) || (($1 != "S") && ($5 != "7"))) print $0}' welcome > welcome1
34,053
Posted By karthickrn
Logical AND, OR not working with awk.
awk -F^ '{ if ((($1 == "M") && ($5 == "2")) || (($1 == "S") && ($5 == "7"))) print $0}' welcome > welcome1

When I run the above awk command, I could see the same content of welcome in welcome1.
...
1,892
Posted By karthickrn
Can anyone solve this awk issue ?
awk -F^ '{ if (($1 != "X") && ($5 != "3")) || if (($1 != "S") && ($5 != "2")) print $0}' abc> xyz

The above command returns this error

awk: syntax error near line 1
awk: illegal statement...
Showing results 1 to 20 of 20

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