Question: generate .tab file for snippy with filenames & paths
0
gravatar for 3335098459
6 days ago by
333509845920
333509845920 wrote:

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

snp genome • 49 views
ADD COMMENTlink written 6 days ago by 333509845920

See detailed discussion at https://stackoverflow.com/questions/1251999/how-can-i-replace-a-newline-n-using-sed

ADD REPLYlink written 6 days ago by Sam30
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1580 users visited in the last hour