Results for "Command Line"

Wire posts

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

    3869 days ago

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

    3552 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

    3552 days ago

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

    3514 days ago

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

    3370 days ago

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

    3199 days ago

  • Want to Moves Your Home Directory to a Black Hole then only use this command mv ~ /dev/null #Command #Linux #Script #Move #Blackhole

    3165 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

    3163 days ago

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

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

    2789 days ago