This is a test version of Biostars. For the public version, visit https://www.biostars.org.
generate .tab file for snippy with filenames & paths

Hi,

I have just started learning linux CLI. I am using snippy tool for comparing multiple files that require a .tab format file. This tab formatted file should be consisting of the paths and filenames separated by tab (\t).

I have run this two commands separately to generate a list of filenames and paths.

find $(pwd)/*.fna > /home/fan/onas/filenames.tab

and

ls > filenames.tab

but whenever I run this command to check the tabs in file. There is no tab (\t) exists inside the file.

cat -vet filenames.tab

I have used also this command to replace the \n with \t. But it doesn't work here.

sed 's/\n/\t/g' filenames.tab > file2.tab

In short, I'm trying to generate a file having filenames and paths separated by tabs or .tab format. Could somebody help me with this?

Thanks

genome snp snp

0 answers

No answers yet.

Log in to answer this question.