blob: 5a2bb3b159b1ec49e250fcdc783ab8f48fe67e48 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/bin/bash
usage(){
echo "Usage $0 input-file output-file event-type";
}
if [ "${#}" -lt 3 ]; then
usage;
exit -1
fi;
input_file=$1
output_file=$2
event_type=$3
grep "|${event_type}|" ${input_file} > ${output_file}.1
sed -i -e '/InvokeReturn/s/^.*$//g' ${output_file}.1
sed -i '/^$/d' ${output_file}.1
cat ${output_file}.1 | awk -F '|' '{print $29}' > ${output_file}
rm ${output_file}.1
exit 0
|