Files
Arquivotheca.Solaris-2.5/cmd/osadmin/shell/labelfsname
seta75D 7c4988eac0 Init
2021-10-11 19:38:01 -03:00

15 lines
381 B
Plaintext
Executable File

#ident "@(#)labelfsname 1.3 92/07/14 SMI" /* SVr4.0 1.1 */
# given the output of /etc/labelit, return the file system name and
# volume label as shell variable assignments.
#! chmod +x ${file}
if [ $# -eq 0 ]
then
echo >&2 "Usage: $0 /etc/labelit-output"
exit 1
fi
echo $* |
sed -n 's/Current fsname: \(.*\), Current volname: \(.*\), Blocks: .*/fsname=\1 label=\2/p'