Exclude a file from bash script

From this topic, could anyone kindly help out with the code to exclude the _index.md file from being converted to a page bundle?

Answer is here.