repo.or.cz
/
xrzperl.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
updated git and svn scripts
[xrzperl.git]
/
curl_fm
blob
d22f4f1af2a8d655a6966c39c82e4f89a24459e0
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
)));
13
14
15
16
open
(
FH
,
"curl
@ARGV
2>&1|"
);
17
while
(<
FH
>) {
18
if
(
m/([0-9.]+%)/
) {
19
print
"
$1
"
;
20
}
21
else
{
22
print
"Haha___
$_
"
;
23
}
24
}
25
26
27
28
29