Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I pipe data from /etc/vfstab into prtvtoc

Status
Not open for further replies.

pinxos

Technical User
Nov 18, 2003
2
GB
I'd like to write a script to pipe data from /etc/vfstab into prtovtoc i.e the start of the /etc/vfstab line "/dev/dsk/c1d0s2" and so on.
Anyone help pleez ??
 
Try it:

For i in `awk '$1 !~ /^#.*/ && $1 ~ /\/dev\/.*/ {print $1 }' /etc/vfstab`
do
prtvtoc $i
done

tikual
 
Tikual, ta very much, script works a treat :-D
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top