switch to nextra

This commit is contained in:
2023-03-07 21:13:09 +01:00
parent b625477f92
commit b7778e28cd
35 changed files with 1669 additions and 8304 deletions

7
pages/cli/convert-documents.md Executable file
View File

@@ -0,0 +1,7 @@
# 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.

7
pages/cli/diff.md Executable file
View File

@@ -0,0 +1,7 @@
# See difference between files / directories
```bash
diff -ry dir1 dir2
```
The `-r` flag is to recurse into folders. The `-y` flag creates a side by side view, generally easier to read. `-q` Would only show what filenames changed.

15
pages/cli/rename.md Executable 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