From 42d3d542b94cdd3b34eb98a04fc2fef3662342e8 Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Thu, 22 Apr 2021 11:07:07 -0600 Subject: [PATCH] Cleanup find command --- ont/ont-transfer | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ont/ont-transfer b/ont/ont-transfer index 487cc3f..500540a 100755 --- a/ont/ont-transfer +++ b/ont/ont-transfer @@ -72,7 +72,7 @@ mkdir -p "$FASTQPATH" # Copy the files for FASTA in ${KEEPERS[@]}; do # Check to see if there are any files here - if [[ -n $(find $FOLDERPATH -type f \( -name "*.fast5" \) -path "*_pass*barcode$FASTA*") ]]; then + if [[ -n $(find $FOLDERPATH -type f -name "*.fast5" -path "*_pass*barcode$FASTA*") ]]; then # Find the uid that the GridION gives to this sample ONTID=$(find $FOLDERPATH -name "*.fast5" -path "*_pass*barcode*$FASTA*" | head -n 1 | xargs basename | awk '{split($0,a,"_"); print a[4]}')