This works on my AIX systems but not my HP-UX
#!/bin/ksh
while read TBS
do
if ! [ $TBS ]
then
echo No Tablespace to process
continue
else
echo $TBS
fi
done < tbs
The tbs file contains sql output of all the tablespaces in my oracle database. The problem is that there is some blank lines in the file. I am tring to read the file, without processing any blank lines....
It will run if I remove the #!/bin/ksh
Error Received:
!: not found
Any ideas??????
#!/bin/ksh
while read TBS
do
if ! [ $TBS ]
then
echo No Tablespace to process
continue
else
echo $TBS
fi
done < tbs
The tbs file contains sql output of all the tablespaces in my oracle database. The problem is that there is some blank lines in the file. I am tring to read the file, without processing any blank lines....
It will run if I remove the #!/bin/ksh
Error Received:
!: not found
Any ideas??????