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
See detailed discussion at https://stackoverflow.com/questions/1251999/how-can-i-replace-a-newline-n-using-sed