indexer example (HEAD) for shellscript