Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env perl
- $file = $ARGV[0] or exit;
- open $fh, '<', $file or die "$!";
- binmode $fh;
- $content = do { local $/; <$fh> };
- $content=~s#www.it-ebooks.info##sg;
- $content=~s#/Type /Annot[^>]*?\(http:///\).>>##sg;
- open $fh, '>', $file or die "$!";
- binmode $fh;
- print $fh $content;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement