This is a test version of Biostars. For the public version, visit https://www.biostars.org.
how to convert output of bash script to .csv ?

I want to convert the output of the below mariamscript.sh shell script to csv, so that I can get the information in column format :

#!/bin/bash 
Name="mariam moahmed"
Email=mariamdarwish880@gmail.com
slack=mariamdarwish0
biostack="transcriptomics/machinelearning and datascince" 

for i in  {Name,Email,slack,biostack}

do 
echo "$i = ${!i}"
done
bash csv

Please post the expected output.

1 answer

pipe the output into paste - - -

shouldn't it be paste -d "," - - - - ?

Log in to answer this question.