aboutsummaryrefslogtreecommitdiff
path: root/extract_field.sh
diff options
context:
space:
mode:
Diffstat (limited to 'extract_field.sh')
-rwxr-xr-xextract_field.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/extract_field.sh b/extract_field.sh
index aab4b6a..030ddaf 100755
--- a/extract_field.sh
+++ b/extract_field.sh
@@ -2,4 +2,4 @@
# Usage: ./extract_field.sh DBNAME KEY FIELDIDX
-awk 'BEGIN { FS = ":" } $1 == "'"$2"'" { print $'"$3"'}' < $1
+awk 'BEGIN { FS = "_" } $1 == "'"$2"'" { print $'"$3"'}' < $1