diff options
| author | Jonas Smedegaard <dr@jones.dk> | 2006-02-07 01:35:04 +0000 |
|---|---|---|
| committer | Jonas Smedegaard <dr@jones.dk> | 2006-02-07 01:35:04 +0000 |
| commit | 9e1d47659b61c38630f25d0c31639a775513c8c8 (patch) | |
| tree | 117af0547161b5334c2a5d909da51defdcaede92 | |
| parent | b1379a73daa6066bb712d4bddf2e55b624545902 (diff) | |
Add new script.
| -rwxr-xr-x | sponge | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -0,0 +1,12 @@ +#! /usr/bin/perl -w + +# Origin: http://riva.ucam.org/svn/cjwatson/bin/sponge + +use strict; + +binmode STDIN; +undef $/; +my $input = <STDIN>; +open OUT, "> $ARGV[0]" or die "couldn't open $ARGV[0]: $!"; +print OUT $input or die "couldn't write to $ARGV[0]: $!"; +close OUT or die "couldn't close $ARGV[0]: $!"; |
