Subversion Repositories planix.SVN

Rev

Rev 2 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 - 1
#!/bin/rc
2
rfork en
3
 
4
 
5
if(! ~ $#* 1) {
6
	echo usage: usps 01601531218002685498 >[1=2]
7
	exit usage
8
}
9
 
10
rfork e
11
 
12
hget -p 'origTrackNum='^$1 http://trkcnfrm1.smi.usps.com/PTSInternetWeb/InterLabelInquiry.do |
13
	htmlfmt > /tmp/usps.$pid
14
 
15
sam -d /tmp/usps.$pid >[2] /dev/null <<'!'
16
0,/Label/-1d
17
/^Enter Label/,$d
18
,p
19
!
20
rm /tmp/usps.$pid