mirror of
https://github.com/cupcakearmy/memoir.git
synced 2025-09-05 23:40:41 +00:00
feat: init
This commit is contained in:
3
docs/cli/_category_.json
Normal file
3
docs/cli/_category_.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"label": "CLI"
|
||||
}
|
14
docs/cli/convert-documents.md
Normal file
14
docs/cli/convert-documents.md
Normal 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
15
docs/cli/rename.md
Normal 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
|
Reference in New Issue
Block a user