Hi,
I'm using this command on my terminal computer (MacBook Air) but not like this because it doesn't work ...
cat 20201028_CCDG_14151_B01_GRM_WGS_2020-08-05_chrX.recalibrated_variants.vcf.gz | grep -w -f chrX.posi.txt > chrx.com.txt
Do you have any suggestions?
Thank youuuu!
Welcome. 1) Please make the title more informative so people with the same issue can find your question and answer and 2) "doesn't work" isn't a very helpful way of describing a problem - be more specific and why what exactly doesn't work and how, and you will get a better answer. Thanks.
One can
linuxify
macOS to use GNU versions: https://github.com/darksonic37/linuxifyUhhhh, why would I do that???
probably to make commands work the same way ...
simple commands like
sed
or even something as simple asls
work differently on the BSD-derived Mac OSthe differences are subtle enough to make debugging quite difficult
These sorts of differences plus annoyances with compilation on different platforms is why I use Ubuntu-based containers for almost everything these days, but this is a different discussion...
Sorry, I was just kidding. It is most important to know about these subtle differences and why they exist, but I sort of grew up with this. If these BSD tools come as part of Apple OS I would personally never replace them, possibly install them in addition in my path. There might be some side effects, though rather unlikely.