diff --git a/dots/bin/tp.sh b/dots/bin/tp.sh index 93316ce..0b042d8 100755 --- a/dots/bin/tp.sh +++ b/dots/bin/tp.sh @@ -31,13 +31,32 @@ echo "---" >> ${log_file} for input_file in "$@"; do # lf file manager sends multiple files as one input parameter, split by with newlines + + +declare -a theArray + +while read -r line +do + theArray+=("$line") +done <<< "$lines" + +for line in "${theArray[@]}" +do + echo "$line" >> ${log_file} + #Do something complex here that would break your read loop +done + # while IFS= read -r line; do # echo "... $line ..." - for line in "$input_file" - do - echo ${line} >> ${log_file} - done +# for line in "$input_file" +# do +# echo ${line} >> ${log_file} +# done + +# while IFS= read -r line; do +# echo "... $line ..." +# done <<< "$list" # for input_file in