( cat zoofile.txt | grep pandas for instance will look for all lines including the word "pandas" is a file names "zoofile." Note Linux IS CASE SENSITIVE and will only find EXACTLY what you put in. The "|" is called piping, and when coupled with "grep" command, acts a little like a filter for whatever you're looking for. This command will ONLY output the lines found using grep (kind of like a "search" function, but it searches only by line.) If you want to print out the lines for a specific name, you could use cat data.txt | grep ABCD123 > genelist.txt newfile.txt and change ABCD123 to whatever you want. (newfile.txt is the other file you mentioned it going to - the name is arbitrary). If you simply want to parse the data.txt and move it to the genelist.txt you could simply use cat data.txt > genelist.txt newfile.txt. PArdon me in advance, this is a very concise crash course in addition to a very basic explanation but I'd be happy to expound in detail if it doesn't make sense, or edit as necessary. However, I think I understand what you need, and it shouldn't be too difficult. This is quite an undertaking without any previous Linux experience. One way to do it: awk '' results.txt | sort -u | fgrep -w -v -f - genelist.txt >outsiders.txt Seeing which genes from genelist.txt were not included in the extraction is a little more complicated.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |