open FILE, '>log_'.$expt_name.'.txt' or die "Can't open file : $!\n"; print FILE "***********************\n"; my @Ids=`zcat $log_files | sed -e 's/\\\n/\\n/g' | grep -B5 'name\?'| + grep Id`; foreach (@Ids){ print $_."\n"; #Search and print the first occurence of <score> after $_ } close FILE;
There is not much code I have written so far :), trying to figure out which tools to use..thanks
In reply to Re^2: Searching a gzip file
by baski
in thread Searching a gzip file
by baski
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |