You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
regarding the unix crash course / Variables and For loops / "grep -w -A 1 ">9" genes.faa"
grep with -w doesn't detect only whitespace but any "non-word constituent character" so anything that isn't alphanumerical or an underscore. This also means adding > to the string is redundant.
(I found it out by chance and then checked the man page. Possibly not universal(?))
The text was updated successfully, but these errors were encountered:
Hey look at that! haha, thanks @NogNoa. The man page on darwin (mac) versions isn't as clear, but it still seems to operate the same way. So at least on the ubuntu, redhat, and darwin versions of unix environments i've tested on, it seems to be universal so far :)
I have to think about what to do there now, as i'm not sure how much detail on this should be there, but i definitely need to modify how it is currently because i'm def misrepresenting it at the moment. I think in the end I'll still want the ">" included, because if the headers had spaces and a 9 somewhere in them (which they shouldn't of course, and i've never see that specific format, but any tool can write headers weird, so better safe than sorry), it would still grab that line too, while doing it with the ">" included in the grep pattern it will only grab those at the start, e.g.:
But again, it's def misleading/wrong now, and I will revisit it ASAP to clean it up. Thanks for catching and reporting that!
regarding the unix crash course / Variables and For loops / "grep -w -A 1 ">9" genes.faa"
grep with -w doesn't detect only whitespace but any "non-word constituent character" so anything that isn't alphanumerical or an underscore. This also means adding > to the string is redundant.
(I found it out by chance and then checked the man page. Possibly not universal(?))
The text was updated successfully, but these errors were encountered: