Tuesday, May 21, 2013

find all trace file cover certain time period and copy to another directory.

Following is the command I used to copy all trace file cover periods between 1pm to 2pm on 2013-05-18 to a tmp directory

cp $(grep '2013-05-18 13:' *trc|awk -F: '{print $1}'|uniq) /tmp

No comments:

Post a Comment