datalad-handbook/docs/basics/topic/globscript2-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

14 lines
481 B
ReStructuredText

Please use an editor of your choice to replace the contents of ``list_titles.sh`` inside of the ``code`` directory with the following:
.. code-block:: bash
for i in recordings/longnow/Long_Now*/*.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