Thanks nithinpes and crazy4perl.
I have written a simple code that can extract required columns from a simple file. I am just trying to get some output and this works for a file.
$myfile=$ARGV[0];
$myfile1=$ARGV[1];
open (DATA, "<$myfile") || die "Can't open $myfile $!";
while (<DATA> )
{
@x= split('\t');
if ($x[0] >= 1) {...
User Profile
Collapse
-
hey friends,
Thanks a lot for ur replies. I will try according to you people..
I will post the result as soon as i get some result.
presently, i just can filter the certain column of data using split function but they have to be concatenated similar datas( just like adding columns in excel) from datas from multiple files.
Result shuld be like:
SN Places Temp humidy date temp humidity date...Leave a comment:
-
to extract certain column of data from a number to files.
I am new to perl scripting. I am having some problem to write a program.
I have a number of files containing same type of data with same header.
File is like this.
SN. Cities temperature Humidity rainfall
1 abc 33 66 23
2 ghi 36 83 12
3 xyz 23 78 11
......
I want to extract temperature and humidity for all cities...
No activity results to display
Show More
Leave a comment: