I currently have a shell script that creates Oracle databases configured the way we want them here. One part of it allows you to choose which file system to place the database files. This is the command which works.
Quote:
select FS in `df 2>/dev/null |awk 'BEGIN {RS=" " } {print $0}' |egrep "/oradata|/oraindex" |grep
-v "^/dev/"|sort `
This produces a list of file systems from which to choose. I have been tasked to change this output to show not only the file system name but the corresponding free space. I have tried several hours worth of variations but have failed miserably. How can I achive this desired output?