Skip to content

Commit

Permalink
Check for delimiters in uf-select -i
Browse files Browse the repository at this point in the history
  • Loading branch information
zwets committed Jan 14, 2019
1 parent 3ff6601 commit adb1254
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uf-select
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ if [ -n "$NTH" ]; then
' "$@"
elif [ -n "$SEQID" ]; then
awk -b -O -v SEQID="$SEQID" '
NR % 2 == 1 && index($1,SEQID) != 0 { print; getline; print }
NR % 2 == 1 && (P=index($1,SEQID)) != 0 { C=substr($1,P+length(SEQID),1); if (C=="" || C==" " || C=="|") { print; getline; print } }
' "$@"
elif [ -n "$REGEX" ]; then
awk -b -O '
Expand Down

0 comments on commit adb1254

Please sign in to comment.