mirror of
https://github.com/cupcakearmy/memoir.git
synced 2025-09-05 23:40:41 +00:00
switch to nextra
This commit is contained in:
7
pages/cli/convert-documents.md
Executable file
7
pages/cli/convert-documents.md
Executable 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
7
pages/cli/diff.md
Executable 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
15
pages/cli/rename.md
Executable 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