datalad-handbook/docs/basics/topic/globscript1-windows.rst
Michael Hanke 05d1af4a10 Move windows-wit box content into dedicated file
The main goal is to trim the diff to the print version again, where
content was moved and taken out of containers. This makes merged
conflict-ladden and painful. With this approach, any content change
would happen in the dedicated file, which can be used for boxes
and sections alike. Associated index items must stay outside,
because they are declared on the container.

This changeset is complete, the rest will happen in the print-version
branch.
2023-11-06 16:42:30 +01:00

17 lines
621 B
ReStructuredText

Please use an editor of your choice to create a file ``list_titles.sh`` inside of the ``code`` directory.
These should be the contents:
.. code-block:: bash
for i in recordings/longnow/Long_Now__Seminars*/*.mp3; do
# get the filename
base=$(basename "$i");
# strip the extension
base=${base%.mp3};
# date as yyyy-mm-dd
printf "${base%%__*}\t" | tr '_' '-';
# name and title without underscores
printf "${base#*__}\n" | tr '_' ' ';
done
Note that this is not identical to the script in the text -- it lacks a few ``\`` characters, which is a meaningful difference.