Creates 100 random DNA sequences with 20 residues. sapply(1:100, function(x) paste(sample(c("A","T","G","C"), 20, replace=T), collapse="")) #R#Random#Sequence#DNA#Script
Almost all the scripting languages such as Perl, Python etc have built-in sort, but unfortunately none of them are as flexible as sort command. But one when it come to space efficiency GNU sort stands at the top. It can sort a 20Gb file with less...