#!/bin/rc # name: vefs # usage: vefs patterm # coded by Kenji Arisawa # source: http://plan9.aichi-u.ac.jp/netlib/ # last update: 2002/09/04 log=$home/venti/log if(~ $#* 0) a=`{tail -1 $log} if not a=`{grep $"* $log | tail -1} if(! ~ $#a 4){ echo '# pattern not exist' exit 'pattern not exist' } unmount /n/vac >[2] /dev/null vacfs -h pc <{echo vac:$a(1)}