Display top 10 Mrmory resource intensive processes in order $ line=$(ps aux | head -n 1) && echo $line; ps aux | sort -nrk 5 | head #Display #Top10 #Memory #Processes #Linux #Trick
Extract sequence by using Ids file (assuming one ids in a line): perl -ne 'if(/^>(\S+)/){$c=$i{$1}}$c?print:chomp;$i{$_}=1 if @ARGV' ids.file fasta.file #PerlTricks #PerlOneliner #Perl #Extract #Ids #