Results for "command-line"

Wire posts

  • 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

    2833 days ago

  • #Remove all line that start with # file: $ sed '/^#/ d' filename #line #sed #linux

    2662 days ago

  • Remove four beginning characters from each line of the file. $ sed 's/^....//' genbank.txt #Remove #Sed #Text

    2558 days ago

  • You can use the df command to know the free space in the disk: $ df -h . #df #Linux #List #Free #Space

    2553 days ago

  • Print each command before executing? Bash script to print each command before executing. $ bash -x myscript.sh #Print #Command #Bash

    2524 days ago

  • Linux command to find the file contains a string "LOCK_EX": grep -Ril "LOCK_EX" / #Root #Find #Linux #Grep #search

    2401 days ago

  • Print the lqst line of the file zith Perl. $ perl -ne 'END {print $last} $last= $_ if /\S/' blocks_coords.gff #Last #Line #Perl

    1807 days ago

  • #Convert #fasta file to uppercase/lowercase, without altering the annotation line $ awk '{ if ($0 !~ />/) {print toupper($0)} else {print $0} }' name.fasta

    2287 days ago

  • https://web.expasy.org/cellosaurus/- a knowledge resource on cell lines #Cell #line #DB

    2280 days ago

  • #Convert a #multi-line #fasta to a #singleline #fasta $ awk '!/^>/ { printf "%s", $0; n = "\n" } /^>/ { print n $0; n = "" } END { printf "%s", n }' sample1.fa > sample1_singleline.fa

    2206 days ago