feat: init

This commit is contained in:
2023-02-19 13:34:28 +01:00
commit b4771ce23f
30 changed files with 9692 additions and 0 deletions

3
docs/cli/_category_.json Normal file
View File

@@ -0,0 +1,3 @@
{
"label": "CLI"
}

View File

@@ -0,0 +1,14 @@
---
tags:
- pandoc
- find
- xargs
---
# Convert documents
```bash
find . -name "*.odt" | xargs -I % pandoc % -o %.md
```
You can add the `-p` flag to `xargs` to confirm before executing, useful for testing if what your are doing is actually correct.

15
docs/cli/rename.md Normal file
View File

@@ -0,0 +1,15 @@
---
tags:
- rename
- regex
---
# `rename`
`rename` is a command to rename based on regex.
```bash
rename 's/.odt.md/.md/' *.odt.md
```
> Use the `-n` flag to dry run