Results for "Perloneliner"

Top-level pages

Wire posts

  • Write something at the bottom of the file without opening it. perl -p -i -e 'eof && s/$/\nWord/;' <filename> #Tipsoftheday #Perloneliner

    3919 days ago

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

    3868 days ago

  • +10 more Wire posts

Fun

Tags

  • PerlOneLiner for Bioinformatician

    FILE SPACING------------ # Double space a fileperl -pe '$\="\n"'perl -pe 'BEGIN { $\="\n" }'perl -pe '$_ .= "\n"'perl -pe 's/$/\n/'perl -nE 'say' # Double space a file, except the blank linesperl -pe '$_ .= "\n" unless /^$/'perl -pe '$_ .= "\n" if /\S/' # Triple space a fileperl -pe '$\="\n\n"...

    Tags: perl, perloneliner, onelioner

    2301 days ago