Results for "on-line"

Wire posts

  • To print the matching pattern line perl -ne '/pattern/ && print' infile.gtf #Perloneliner #Tipsoftheday

    3882 days ago

  • The syntax to remove last character from line or word is as follows: x="foo bar" echo "${x%?}" #Remove #Last #Bash #Linux

    3565 days ago

  • Join the result of ls -1 into one line and delimit it with comma : newStr=$(ls -m *.txt) or mystring=$(printf "%s," *) #Bash #Comma #String #List #ls

    3565 days ago

  • Search a PATTERN in a file and print the line. perl -ne '/PATTERN/ && print' fileName #Perl #Pattern #Print #Search #Line

    3527 days ago

  • Get line number with Perl $fh->input_line_number() #Perl #Tipsoftheday #Tricks

    3383 days ago

  • Bioinformatics on the commandline http://www.vicbioinformatics.com/documents/command-line/#/ #R Bioinformatics #CommandLine #Commands #PPT

    3212 days ago

  • 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

    3176 days ago

  • #Print all line #except those #contains a letter "T" that is not immediately followed by a "H" with: grep -v 'T[^H]'

    2976 days ago

  • 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 #

    2801 days ago

  • Split the text file with line number in Linux: wc -l abc.txt and then: split -l 60000 abc.txt #Split #Break #Line #Ubuntu #Linux #Tricks

    2794 days ago