---
title: "Rename files in bulk (cont)"
url: https://perrotta.dev/2024/11/rename-files-in-bulk-cont/
last_updated: 2026-01-03
---


Deeper into the [rabbit hole]({{< ref "2024-06-19-rename-files-in-bulk" >}}):

```shell
% fd Dockerfile.dockerignore | xargs -n 1 rename 's/Dockerfile\.dockerignore/.dockerignore/'
```

The pre-commit [identify](https://github.com/pre-commit/identify) library
currently mistags these files as Dockerfiles, even though they are not[^1],
which creates all sorts of issues.

[^1]: They are akin to `.gitignore` files in terms of structure.

