Search Results

Search: Posts Made By: sayachop
2,351
Posted By sayachop
Hi I have this code open(MYOUTFILE,...
Hi

I have this code


open(MYOUTFILE, "fps.log");
open(RESULTFILE, ">result.txt");
my $total=0;
my $lines=0;
while (<MYOUTFILE>) { chomp; my $value = (split /([,:])/)[2];...
2,351
Posted By sayachop
Array in Perl - Detect several file to be in one array
Hi everyone

I have one question about using array in perl. let say I have several log file in one folder.. example

test1.log
test2.log
test3.log
and the list goes on..

how to make an...
9,226
Posted By sayachop
Hi I try to modify so it can process many...
Hi

I try to modify so it can process many log file and produce result.txt for each file. Seems like my code is not correct
# Find filenames containing 'log' in current working directory...
9,226
Posted By sayachop
Hi Durden Tyler Yeah I got the answer in...
Hi Durden Tyler

Yeah I got the answer in out.txt. Let say I have fps1.csv, fps2.csv, fps3.csv .... then how to produce so that each log file will have its own result? Basicly my idea is the...
9,226
Posted By sayachop
Volume in drive C is OSDisk Volume Serial...
Volume in drive C is OSDisk
Volume Serial Number is 4023-C497

Directory of C:\Users\mhamzah2\Desktop\media decode project

09/06/2011 09:24 AM 1,794 fps.csv
1...
9,226
Posted By sayachop
Hi Anybody can look what is the problem...
Hi

Anybody can look what is the problem with this code.

perl -e "my $total=0; while (<>) { chomp; my $value = (split /([,:])/)[2]; $total=$value+$total; open FILE, ">", "ami.txt" or die $!...
9,226
Posted By sayachop
Hye getmmg C:\Users\mhamzah2\Desktop\media...
Hye getmmg

C:\Users\mhamzah2\Desktop\media decode project>perl -F':|,' -lane '$sum+=$F[1];$
count++}{print $sum/$count' fps.csv.
''' is not recognized as an internal or external command,...
9,226
Posted By sayachop
PATH=C:\Program Files (x86)\Intel\Media...
PATH=C:\Program Files (x86)\Intel\Media SDK\3.0.442.32245 Beta3\bin\win32;C:\Per
l64\site\bin;C:\Perl64\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wb...
9,226
Posted By sayachop
I get the answer by using cmd command. My perl...
I get the answer by using cmd command. My perl program is at C:\Perl64\bin

Is this is the correct way to defined perl path on windows?

#C:\Perl64\bin\perl

or

#C:/Perl64/bin/perl
9,226
Posted By sayachop
Halo itkamaraj I try to run this code...
Halo itkamaraj

I try to run this code (ami.pl)
$ perl -e 'my $total=0; while (<>) { chomp; my $value = (split /([,:])/)[2]; $total=$value+$total; }print $total/$.' fps.csv

but still can't...
9,226
Posted By sayachop
I try the code and name the perl program as...
I try the code and name the perl program as ami.pl . Im running this perl script on windows 7 and I already installed active perl on my pc. Seems like nothing happened in csv file.

---------- Post...
9,226
Posted By sayachop
Hi jayan_jay Thanks for your help. Let say...
Hi jayan_jay

Thanks for your help. Let say my csv file name is fps.csv

should I open or declare fps.csv before use your code?
$ nawk -F"[:,]" '{print $2|"xargs"}' infile | nawk '{s=0; for...
9,226
Posted By sayachop
Calculate average from CSV file using PERL script
Hi All

I have this csv file and I need to calculate the average of FPS.

FPS:27.7420, Interval:1314184238772
FPS:25.9798, Interval:1314184242646
FPS:27.4772, Interval:1314184246311...
Showing results 1 to 13 of 13

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