# Exclude a file from bash script

**URL:** <https://discourse.gohugo.io/t/exclude-a-file-from-bash-script/38888>\
**Category:** support\
**Created:** [June 1, 2022, 3:28pm UTC](https://discourse.gohugo.io/t/exclude-a-file-from-bash-script/38888 "2022-06-01T15:28:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tut](https://avatars.discourse-cdn.com/v4/letter/t/e95f7d/32.png) [@tut](https://discourse.gohugo.io/u/tut)\
**Post date:** [June 1, 2022, 3:28pm UTC](https://discourse.gohugo.io/t/exclude-a-file-from-bash-script/38888/1 "2022-06-01T15:28:04Z")

</div>

From [this topic](https://discourse.gohugo.io/t/bash-script-to-convert-hugo-content-files-to-page-bundles/9776), could anyone kindly help out with the code to exclude the `_index.md` file from being converted to a page bundle?

---

<div class="post-metadata">

**Author:** ![tut](https://avatars.discourse-cdn.com/v4/letter/t/e95f7d/32.png) [@tut](https://discourse.gohugo.io/u/tut)\
**Post date:** [June 1, 2022, 8:09pm UTC](https://discourse.gohugo.io/t/exclude-a-file-from-bash-script/38888/2 "2022-06-01T20:09:01Z")

</div>

Answer is [here](https://discourse.gohugo.io/t/convert-hugo-content-files-to-page-bundles/38889).

---

<div class="post-metadata">

**Author:** ![system](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/system/32/1_2.png) [@system](https://discourse.gohugo.io/u/system)\
**Post date:** [June 3, 2022, 8:09pm UTC](https://discourse.gohugo.io/t/exclude-a-file-from-bash-script/38888/3 "2022-06-03T20:09:57Z")

</div>

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
