TEMP_FILE=$(mktemp)

if true; then
  echo "Hello"
fi >> $TEMP_FILE

cat $TEMP_FILE $TEMP_FILE | wc -m
rm $TEMP_FILE