thanks it's work (y)
• 0 views
•
link
Hi,
I have a column in a file with this format
Gene | transcript | source
I would have separated the 3 so that substituted the tube by tabs With the command
Perl -ne 's / "|" / "\ t" / g' file
but it does not work
ideas ??
Thank you
It should be
perl -pe 's/\s+\|\s+/\t/g' file > newfile
sed -i 's/|/ /g' file (control +v, tab to insert tab into command)
Log in to answer this question.