The -separator $'\t'
option does not take effect because in column
output mode, each record is shown on a separate line with the data aligned in columns
.
The sqlite3 command line option does overwrite the settings in .sqliterc. Try overwriting the output mode using -list
option, then you will see -separator $'\t'
takes effect.
sqlite3 -separator $'\t' -list -header test.db "select * from test" | cat -A
The output is in list
mode, \t
as the separator:
-- Loading resources from /home/test/.sqliterc
Ensembl_Gene_ID^Igene$
ENSMUSG00000038503^IMesdc2$
ENSMUSG00000038503^IMesdc2$
ENSMUSG00000038503^IMesdc2$
ENSMUSG00000038503^IMesdc2$