LINUX.ORG.RU

История изменений

Исправление f1u77y, (текущая версия) :

$ cat /tmp/228.sh 
#! /bin/sh
keywords_test="allsecurityinfo                     \"/media/kukubuntu/Data/AAA_Work/Programing/WEB/allsecurity.info\" ubuntu_program_files                \"/media/kukubuntu/Data/Program Files/AAA_Ubuntu\""
eval "array=($keywords_test)"
for token in "${array[@]}"; do
    echo "$token"
done

$ /tmp/228.sh 
allsecurityinfo
/media/kukubuntu/Data/AAA_Work/Programing/WEB/allsecurity.info
ubuntu_program_files
/media/kukubuntu/Data/Program Files/AAA_Ubuntu

надеюсь, у тебя нет примеров вида "\$(rm -rf ~)", а то будет больно

Исходная версия f1u77y, :

$ cat /tmp/228.sh 
#! /bin/sh
keywords_test="allsecurityinfo                     \"/media/kukubuntu/Data/AAA_Work/Programing/WEB/allsecurity.info\" ubuntu_program_files                \"/media/kukubuntu/Data/Program Files/AAA_Ubuntu\""
eval "array=($keywords_test)"
for token in "${array[@]}"; do
    echo "$token"
done

$ /tmp/228.sh 
allsecurityinfo
/media/kukubuntu/Data/AAA_Work/Programing/WEB/allsecurity.info
ubuntu_program_files
/media/kukubuntu/Data/Program Files/AAA_Ubuntu