From bff31996f2d147fd1a807f9eef3775d997b47920 Mon Sep 17 00:00:00 2001 From: ayakael Date: Thu, 5 Apr 2018 17:12:19 -0400 Subject: [PATCH] [print_present_path] Now needs only TRACKID to print current path --- src/print_present_path | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/print_present_path b/src/print_present_path index 2b0b03d..bbcc8b8 100644 --- a/src/print_present_path +++ b/src/print_present_path @@ -3,17 +3,16 @@ # doc print_present_path { # # DESCRIPTION -# Prints path of exiting TRACKID for IMAGEID. +# Prints path of exiting TRACKID. # # USAGE -# print_present_path +# print_present_path # # } print_present_path() { local DB_FILE="${1}" - local IMAGEID="${2}" - local TRACKID="${3}" + local TRACKID="${2}" - awk -v imageid=${IMAGEID} -v trackid=${TRACKID} 'BEGIN{FS="\t"}{if($2==imageid && $3==trackid){print $4}}' ${DB_FILE} + awk -v trackid=${TRACKID} 'BEGIN{FS="\t"}{if($3==trackid){print $4}}' ${DB_FILE} }