Skip to content

Commit

Permalink
use echo -e
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro Fontana authored and Pedro Fontana committed Apr 16, 2024
1 parent 16535f0 commit 11b0c55
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions examples/hyper_threading/hyper-threading-workflow.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ thread_counts=(1 2 4 6 8 16 )
# Define binary names
binaries=("hyper_threading_main" "hyper_threading_pr")

echo "**Hyper Thereading Benchmark results**" >> result.md
echo "\n \n \n " >> result.md
echo -e "**Hyper Thereading Benchmark results**" >> result.md
echo -e "\n \n \n " >> result.md

# Iter over thread_counts
for threads in "${thread_counts[@]}"; do
Expand All @@ -21,10 +21,10 @@ for threads in "${thread_counts[@]}"; do

# Execute
echo "Running benchmark for ${threads} threads"
echo "\n \n \n " >> result.md
echo $cmd >> result.md
eval $cmd >> result.md
echo "\n \n \n " >> result.md
echo -e "\n \n \n " >> result.md
echo -e $cmd >> result.md
eval -e $cmd >> result.md
echo -e "\n \n \n " >> result.md
done

{
Expand Down

0 comments on commit 11b0c55

Please sign in to comment.