aboutsummaryrefslogtreecommitdiff
path: root/USE.md
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2024-05-20 09:39:05 +0200
committerJonas Smedegaard <dr@jones.dk>2024-05-20 09:39:05 +0200
commitb03347f7e43c3c312e15b3dae1ff342f5a6140ad (patch)
tree76c5c2693d1ac58a3bf8be1e7803c66c6ce6d961 /USE.md
parent54c24fe1aac1dcfbfc5ad0206fbeecf877465662 (diff)
modernize markdown: use triple-backtick (not tab) for code block
Diffstat (limited to 'USE.md')
-rw-r--r--USE.md32
1 files changed, 23 insertions, 9 deletions
diff --git a/USE.md b/USE.md
index 58b616a..7b7cd45 100644
--- a/USE.md
+++ b/USE.md
@@ -14,11 +14,15 @@ while some is done using git-annex-specific commands.
To check status of metadata, use git:
- git status
+```shell
+git status
+```
To check status of file content storage, use git-annex:
- git annex info
+```shell
+git annex info
+```
## Save
@@ -28,9 +32,11 @@ for git-annex archival,
first mark which files are involved
and then archive their (changes to) content:
- git annex add foo bar
- git annex add baz
- git commit -m "Update foo bar, and add baz."
+```shell
+git annex add foo bar
+git annex add baz
+git commit -m "Update foo bar, and add baz."
+```
(final `git commit` is implied by [`git annex sync` or `git annex move`](#clone))
@@ -42,12 +48,16 @@ you obviously want to sometime work with the content locally.
To fetch content of current folder and all subfolders:
- git annex get .
+```shell
+git annex get .
+```
To afterwards relieve local storage of git-annex tracked content
in current folder and all subfolders:
- git annex move .
+```shell
+git annex move .
+```
To fetch or relieve a single file or another directory,
replace the dot with the path to the file or directory.
@@ -61,13 +71,17 @@ Many audio formats can be split
with the package shntool and appropriate helper tools,
e.g. like this for a FLAC file with CUE file for splicing hints:
- shnsplit -o flac -f CUE_FILE.cue FLAC_FILE.flac
+```shell
+shnsplit -o flac -f CUE_FILE.cue FLAC_FILE.flac
+```
For many other formats, including video content,
splitting can be done using the [copy] parameter to FFMpeg,
e.g. like this:
- ffmpeg -i INFILE -ss 15 -t 60 -acodec copy -vcodec copy OUTFILE
+```shell
+ffmpeg -i INFILE -ss 15 -t 60 -acodec copy -vcodec copy OUTFILE
+```
[copy]: https://ffmpeg.org/ffmpeg.html#Stream-copy
"FFMpeg copy parameter"