aboutsummaryrefslogtreecommitdiff
path: root/content/snippets/batch-rename-files.md
diff options
context:
space:
mode:
authorJJ <nicetry@noemail.com>2025-03-19 14:56:26 +0000
committerJJ <nicetry@noemail.com>2025-03-19 14:56:26 +0000
commit16f52b7bef745097f7076dde76715db378b54343 (patch)
treecfcacda8adced2059dcc120d2bc2446d3c4f960a /content/snippets/batch-rename-files.md
first commit
Diffstat (limited to 'content/snippets/batch-rename-files.md')
-rw-r--r--content/snippets/batch-rename-files.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/content/snippets/batch-rename-files.md b/content/snippets/batch-rename-files.md
new file mode 100644
index 0000000..1413d11
--- /dev/null
+++ b/content/snippets/batch-rename-files.md
@@ -0,0 +1,11 @@
+---
+title: Batch rename files using rename
+description: Batch rename files using rename
+tags: ["commandline"]
+---
+
+This appends .json to each file that doesn't already have a .json extension.
+
+```console
+rename 's/$/.json/' *
+```