generate .tab file for snippy with filenames & paths
0
0
Entering edit mode
3.6 years ago
3335098459 ▴ 30

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 • 1.1k views
ADD COMMENT
0
Entering edit mode
ADD REPLY

Login before adding your answer.

Traffic: 1193 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6