analyze.sh csv output

This commit is contained in:
2023-06-01 12:55:30 +02:00
parent 191b90a694
commit 95f8fa8e5e
3 changed files with 6 additions and 4 deletions

View File

@@ -95,8 +95,8 @@ ${f_BUY}"
if [ -n "$f_BUY" ] && [ -z "${BOT}" ]
then
echo "BUY: ${f_echo_prefix}${f_BUY}"
echo "${csv_headline},Marketperformance
${f_last_line}" | cut -d, -f 2-22 | perl -pe 's/([0-9].[0-9][0-9][0-9][0-9][0-9][0-9])[0-9]+/$1/g' | perl -pe 's/((?<=,)|(?<=^)),/ ,/g;' | column -t -s,
#echo "${csv_headline},Marketperformance
#${f_last_line}" | cut -d, -f 2-22 | perl -pe 's/([0-9].[0-9][0-9][0-9][0-9][0-9][0-9])[0-9]+/$1/g' | perl -pe 's/((?<=,)|(?<=^)),/ ,/g;' | column -t -s,
echo "$f_BUY" >${g_tmp}/open-${tmpfile}
BUY_PRICE=$current
f_BUY=""