home *** CD-ROM | disk | FTP | other *** search
/ norge.freeshell.org (192.94.73.8) / 192.94.73.8.tar / 192.94.73.8 / pub / computers / 3b2 / labelfsname < prev    next >
Text File  |  1985-05-23  |  385b  |  15 lines

  1. #    @(#)labelfsname    1.2    /sccs/src/cmd/sadmin/shell/s.labelfsname
  2. #    given the output of /etc/labelit, return the file system name and
  3. #    volume label as shell variable assignments.
  4.  
  5. #!    chmod +x ${file}
  6.  
  7. if [ $# -eq 0 ]
  8. then
  9.     echo >&2 "Usage:  $0 /etc/labelit-output"
  10.     exit 1
  11. fi
  12.  
  13. echo $*  |
  14.     sed -n 's/Current fsname: \([a-zA-Z0-9]*\), Current volname: \([^ ,]*\), .*/fsname=\1 label=\2/p'
  15.