# Revision history [back]

I don't want to have to maintain a list of links. In fact if I just put all the files in the same directory there wouldn't be any need to, because that is an association in itself. What I need then is to open them all at once with one action.

At risk of going off-topic (not really because they will all be LibreOffice files), that could be achieved by any script which when run will open all files in a directory using their associated applications. I think it could be Bash or Python or LibreOffice Basic or perhaps something else. Would you be able to recommend which as I am not familiar with any of them?

I don't want to have to maintain a list of links. In fact if I just put all the files in the same directory there wouldn't be any need to, because that is an association in itself. What I need then is to open them all at once with one action.

At risk of going off-topic (not really because they will all be LibreOffice files), that could be achieved by any What I need is a script which when run will open all files in a directory using their associated applications. I think it could be Bash or Python or LibreOffice Basic or perhaps something else. Would you be able to recommend I've just found this very good webpage which as I am not familiar with any of them?explains bash scripts

http://arachnoid.com/linux/shell_programming.html

and written this:

#!/bin/bash
for fn in *; do
if [ "${fn#*.}" = "odt" ] then libreoffice "$fn" &
fi

if [ "${fn#*.}" = "ods" ] then libreoffice "$fn" &
fi

done


Which does the trick.