home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 15 / 15.iso / s / s053 / 18.ddi / reloc.2 / $INTFBIN / labelfsname < prev    next >
Encoding:
Text File  |  1990-12-08  |  730 b   |  27 lines

  1. #!/sbin/sh
  2. #    Copyright (c) 1990 UNIX System Laboratories, Inc.
  3. #    Copyright (c) 1984, 1986, 1987, 1988, 1989, 1990 AT&T
  4. #      All Rights Reserved
  5.  
  6. #    THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF
  7. #    UNIX System Laboratories, Inc.
  8. #    The copyright notice above does not evidence any
  9. #    actual or intended publication of such source code.
  10.  
  11.  
  12.  
  13. #ident    "@(#)/usr/sadm/sysadm/bin/labelfsname.sl 1.1 4.0 12/08/90 1328 AT&T-USL"
  14. #    given the output of /etc/labelit, return the file system name and
  15. #    volume label as shell variable assignments.
  16.  
  17. #!    chmod +x ${file}
  18.  
  19. if [ $# -eq 0 ]
  20. then
  21.     echo >&2 "Usage:  $0 /etc/labelit-output"
  22.     exit 1
  23. fi
  24.  
  25. echo $*  |
  26.     sed -n 's/Current fsname: \(.*\), Current volname: \(.*\), Blocks: .*/fsname=\1 label=\2/p'
  27.