How to redirect the output to a different column in .csv file
Hi,
I was trying to redirect the output of two variables to different columns of a .csv file in MS excel like this, Code:
echo "$a \t $b" > abc.csv Thanks |
This is a RTFM question.
The man page for echo describes this option: -e enable interpretation of backslash escapes so you need echo -e ... Ed |
FYI I assume this file will be imported into Excel. I believe that by default Excel assumes that CSV files use a comma and text files use a tab. However, you can specify any character as a column separator when importing.
|
All times are GMT -5. The time now is 08:51 PM. |