Skip to content

Instantly share code, notes, and snippets.

@hegge
Created February 19, 2010 10:13
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 hegge/308602 to your computer and use it in GitHub Desktop.
Save hegge/308602 to your computer and use it in GitHub Desktop.
#!/usr/bin/perl
use strict;
use warnings;
# Use: cat file | ./filter.pl > new_file
while(<>) {
if (/^(\w+(\\\w+)*)\\(\w+)\t(\w+)$/) {
print "$1;$3;$4\n";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment