efilter
raw| 1 | #!/bin/bash |
| 2 | |
| 3 | # Public domain notice for all NCBI EDirect scripts is located at: |
| 4 | # https://www.ncbi.nlm.nih.gov/books/NBK179288/#chapter6.Public_Domain_Notice |
| 5 | |
| 6 | pth=$( dirname "$0" ) |
| 7 | |
| 8 | case "$pth" in |
| 9 | /* ) |
| 10 | ;; # already absolute |
| 11 | * ) |
| 12 | pth=$(cd "$pth" && pwd) |
| 13 | ;; |
| 14 | esac |
| 15 | |
| 16 | case ":$PATH:" in |
| 17 | *:"$pth":* ) |
| 18 | ;; |
| 19 | * ) |
| 20 | PATH="$PATH:$pth" |
| 21 | export PATH |
| 22 | ;; |
| 23 | esac |
| 24 | |
| 25 | esearch -filter "$@" |
| 26 |