Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: kvth
1,033
Posted By kvth
hey
hey can u post sample input file and the required output!!

use code tags
1,919
Posted By kvth
Perl programming error
Hi, everyone!!
i am new to perl programming.. plz help me.


#!C:/perl/bin
use warnings;
use strict;
use Text::CSV_XS;
my @rows = "";
my $row;
my $count;
my $fh;
my @fields = "";
my...
16,903
Posted By kvth
16,903
Posted By kvth
here is the entire code..!!
here is the entire code..what i am using right now..!!



#!C:/perl/bin
use warnings;
use strict;

my $file1 = $ARGV[0];
my @input = "";
my @line;
open FILE1, "<$file1"
or die...
16,903
Posted By kvth
HOW to update one column from csv file
Hi,
i tried your code, but its working as infinte loop,, so the program didn't get executed properly...
16,903
Posted By kvth
hey thanks Mr.ilikecows... your code is errors...
hey thanks Mr.ilikecows... your code is errors free.. but when i run it, i get a blank output file...please help
16,903
Posted By kvth
hi every one!! thanks a lot for your answers.. ...
hi every one!! thanks a lot for your answers..

my file has \t(tab) as delimiter, and the input file looks like this


col1 col2 col3....col20 col21 col22
A B C ...... dy 0 ...
16,903
Posted By kvth
How to extract one column from csv file in perl?
Hi everyone,
i am new to perl programming, i have a problem in extracting single column from csv file. the column is the 20th column,
please help me..

at present i use this code

...
2,465
Posted By kvth
Reading a column from xls file using perl
Hi Everyone!
I have a problem in reading a specific column from .xls file using perl language and then manipulating on given criteria.

Detailed Description of the problem::
I have one .xls...
4,047
Posted By kvth
File1: ProductId Location CH-SM-TW-01 ...
File1:
ProductId Location
CH-SM-TW-01 Bangalore
Ch-SM-RW-02 Chennai
Ch-Bg-RW-03 Pune
Ch-Bg-Tw-04 Mumbai


File2
Period
8/11/2010
7/11/2010
3/11/2010
5/11/2010

File3...
4,047
Posted By kvth
Thanks for your reply... My problem is.. I...
Thanks for your reply...
My problem is..
I have three csv files, File1,File2,File3
The file1 has ProductId and Location of Quantities.
File2 has Periods(i.e. the date)
File3 has SalesPrice of...
4,047
Posted By kvth
But it is not working.. presently i m using this...
But it is not working.. presently i m using this code..
#!/bin/sh
AWKPAT='BEGIN{
FS=OFS=","
FILENAME=="'$1'"
while(i<1000)
{
FcstQty = int(rand()*100);
rnd[FcstQty]++;
i++;...
4,047
Posted By kvth
how to give multiple csv files as input in awk
Hi All,
I am new to shell scripting..My problem is i want to give multiple csv files as input to awk script and process the data into one file..

My input file is

File1 ...
Showing results 1 to 13 of 13

 

Featured Tech Videos

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