Skip to content

Instantly share code, notes, and snippets.

@szabadkai
Created March 3, 2014 10:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save szabadkai/9321981 to your computer and use it in GitHub Desktop.
Save szabadkai/9321981 to your computer and use it in GitHub Desktop.
#!/usr/bin/perl
#
# app to remove trailing newlines from fasta files by Levente Szabadkai
#
use v5.14;
while(<>){
if (/^>/){
chomp;
print "\n$_\n";
}
else{
chomp;
print;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment