Month: May 2020

Installing Newick Utilities on Linux

Newick Utilities is a very powerful and feature rich tool for displaying and manipulating phylogenetic trees. Installation Download Newick Utilities from Newick Utilities tar xzvf newick-utlis-x.tar.gz sudo mv newick-utils-x/src/nw* /usr/local/bin

Comparing files using diff and cmp

The diff command gives details of differences between two files. The cmp command simply tells you whether two files are the same or different. The results would be something like…

scp – secure copy

SCP allows file to be copied to, from, or between different hosts using ssh for data transfer. Copy files from remote computer to a local computer: Copy files from local…

bash: Sorting and Merging files

The following script merges several files into one file. Line 5 creates a sorted list of directory contents. Line six loops through all files with .fasta extension. Line 8 appends…

PHP usort explained

The usort function sorts an array by values where the values are sorted by a user-defined function. usort has the following syntax The comparison function takes two arguments and it…