#!/usr/bin/perl -w use strict; while () { if (/tracerec: ([0-9]+) /) { print $1; } }