Commit 458cca8e by Eric Coissac

add function returning the name of the latest taxonomy

parent adae0962
...@@ -37,3 +37,7 @@ TAXONOMY_DIR="${BIODATA_DIR}/taxonomy" ...@@ -37,3 +37,7 @@ TAXONOMY_DIR="${BIODATA_DIR}/taxonomy"
TREMBL_DIR="${BIODATA_DIR}/trembl" TREMBL_DIR="${BIODATA_DIR}/trembl"
SWISSPROT_DIR="${BIODATA_DIR}/swissprot" SWISSPROT_DIR="${BIODATA_DIR}/swissprot"
function latest_taxonomy() {
echo "${TAXONOMY_DIR}/$(ls -ltr "${BIODATA_DIR}/taxonomy" | awk '/^d/ {print $NF}' | tail -1)"
}
...@@ -28,7 +28,7 @@ if [[ -z "${LECALIB_UTIL_SH}" ]]; then ...@@ -28,7 +28,7 @@ if [[ -z "${LECALIB_UTIL_SH}" ]]; then
} }
function lower() { function lower() {
echo $1 | tr "A-Z" "a-l" echo $1 | tr "A-Z" "a-z"
} }
function indirect() { function indirect() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment