Skip to content

Instantly share code, notes, and snippets.

@agzam agzam/
Last active Jul 7, 2018

What would you like to do?
download and extract selected sdcv dictionaries
mkdir -p ~/.stardict/dic
mkdir -p ~/Downloads/dictionary/extracted
cd ~/Downloads/dictionary
for dic in $DICTS; do
curl -o ~/Downloads/dictionary/dict.tar.bz2 $dic
mkdir -p ./extracted
tar -xvf ./dict.tar.bz2 -C ./extracted --strip-components=1
cp ~/Downloads/dictionary/extracted/* ~/.stardict/dic/
rm -rf ./extracted
cd ~
rm -rf ~/Downloads/dictionary
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.