update usage, use sftp -b /dev/stdin
diff --git a/src/cmd/netfiles/netfileget b/src/cmd/netfiles/netfileget
index c621482..88544f5 100755
--- a/src/cmd/netfiles/netfileget
+++ b/src/cmd/netfiles/netfileget
@@ -7,7 +7,7 @@
 }
 
 if(! ~ $#* 2){
-	echo 'usage: netget [-d] system path' >[1=2]
+	echo 'usage: netfileget [-d] system path' >[1=2]
 	exit usage
 }
 
@@ -20,7 +20,7 @@
 
 fn getfile {
 	rm -f $t
-	if(! echo get $2 $t | sftp -b - $1 >/dev/null)
+	if(! echo get $2 $t | sftp -b /dev/stdin $1 >/dev/null)
 		exit 1
 	cat $t
 }
@@ -31,7 +31,7 @@
 }
 
 fn getdir {
-	if(! {echo cd $2; echo ls -l} | sftp -b - $1 | sed '1,2d; s/sftp> //g; /^$/d' >$t)
+	if(! {echo cd $2; echo ls -l} | sftp -b /dev/stdin $1 | sed '1,2d; s/sftp> //g; /^$/d' >$t)
 		exit 1
 	cat $t | awk '$NF == "." || $NF == ".." { next } {s = $NF; if($0 ~ /^d/) s = s "/"; print s}'
 }
diff --git a/src/cmd/netfiles/netfileput b/src/cmd/netfiles/netfileput
index baa3eb1..7b90124 100755
--- a/src/cmd/netfiles/netfileput
+++ b/src/cmd/netfiles/netfileput
@@ -1,7 +1,7 @@
 #!/usr/local/plan9/bin/rc
 
 if(! ~ $#* 2){
-	echo 'usage: netput system path' >[1=2]
+	echo 'usage: netfileput system path' >[1=2]
 	exit usage
 }
 
@@ -15,7 +15,7 @@
 
 fn putfile{
 	cat >$t
-	if(! echo put $t $2 | sftp -b - $1 >/dev/null)
+	if(! echo put $t $2 | sftp -b /dev/stdin $1 >/dev/null)
 		exit 1
 }
 fn putfile9p{
diff --git a/src/cmd/netfiles/netfilestat b/src/cmd/netfiles/netfilestat
index 1d687e5..992cac2 100755
--- a/src/cmd/netfiles/netfilestat
+++ b/src/cmd/netfiles/netfilestat
@@ -1,7 +1,7 @@
 #!/usr/local/plan9/bin/rc
 
 if(! ~ $#* 2){
-	echo usage: netisdir system path >[1=2]
+	echo usage: netfilestat system path >[1=2]
 	exit usage
 }
 
@@ -18,7 +18,7 @@
 		echo !echo XXX connected
 		echo cd $2
 		echo !echo XXX directory exists
-	}  | sftp -b - $1 >$t >[2=1]
+	}  | sftp -b /dev/stdin $1 >$t >[2=1]
 	if(9 grep -s XXX.directory.exists $t){
 		echo directory
 		exit 0