updated git and svn scripts
[xrzperl.git] / curl_fm
blobd22f4f1af2a8d655a6966c39c82e4f89a24459e0
1 #!/usr/bin/perl -w
2 use strict;
3 ###APPNAME: curl_fm
4 ###APPAUTHOR: duel
5 ###APPDATE: Thu Sep 20 07:46:29 2007
6 ###APPVER: 0.1
7 ###APPDESC: curl with reformated output
8 ###APPUSAGE: See curl --help
9 ###APPEXAMPLE:
10 ###APPOPTION:
11 $ARGV[0]="--help" unless(@ARGV);
12 exit 0 unless(system("plhelp",$0,(@ARGV)));
16 open(FH,"curl @ARGV 2>&1|");
17 while(<FH>) {
18 if(m/([0-9.]+%)/) {
19 print "$1";
21 else {
22 print "Haha___$_";