Skip to content

Instantly share code, notes, and snippets.

@libcrack
Created February 6, 2016 09:47
Show Gist options
  • Save libcrack/0f9d94037538f58021f8 to your computer and use it in GitHub Desktop.
Save libcrack/0f9d94037538f58021f8 to your computer and use it in GitHub Desktop.
#!/usr/bin/env perl
use strict;
use warnings;
while (<STDIN>){
$_ =~ s/([;<>\*\|`&\$!#\(\)\[\]\{\}:'"])/\\$1/g;
print $_;
}
exit 0;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment