What is the meaning of this
grep -v $object grant_BU.sql>temp
What is the meaning of this
grep -v $object grant_BU.sql>temp
What are you doing ? Picking one line from a post that you have submitted and then resubmitting it again ?
That would be the same as bumping up your posts, which is against the rules.
Your original post - SQL in script.
Please dont break the rules. And before posting, read the man pages and try those commands yourself.