newfs question

2007-12-25 2:13:00

All,

I am building a new server which has a very large number of file systems. I
wrote a simple shell script to do the newfs command on all necessary file
systems:

for i in `cat /tmp/Slices`
do
echo $i
newfs /dev/rdsk/$i
done

Is there a way on passing the "y" to the question "Do you want to make a new
file system....". unfortunately newfs doesn't take the -y option.

Thanks!

Comments

Got something to say?

You must be logged in to post a comment.