mirror of
https://github.com/wassname/sloth.git
synced 2026-06-27 21:08:40 +08:00
15 lines
286 B
ReStructuredText
15 lines
286 B
ReStructuredText
.. highlight:: python
|
|
|
|
========
|
|
Examples
|
|
========
|
|
|
|
Adding every nth image to label file
|
|
------------------------------------
|
|
|
|
This can be achieved by a combination of ``find`` and ``awk``::
|
|
|
|
find shot01/ -iname "*.png" | sort | awk 'NR%5==1' | xargs sloth appendfiles shot01.json
|
|
|
|
|