hi all,<\/p>\n
done a while true loop<\/p>\n
echo \"please enter in multiple files/folders you want to copy to $mnt\"\nwhile true; do\n read -e path\n echo $path >> /scripts/path\ndone\n<\/code><\/pre>\n
Advertisement
it works but now once the user has entered in all the paths he wants i want them to press ctrl+q to exit out the loop and then continue on with the script<\/p>\n
thanks,
\nrob<\/p>","upvoteCount":1,"answerCount":2,"datePublished":"2024-06-20T11:56:02.453Z","author":{"@type":"Person","name":"robertkwild","url":"https://community.spiceworks.com/u/robertkwild"},"suggestedAnswer":[{"@type":"Answer","text":"
hi all,<\/p>\n
done a while true loop<\/p>\n
echo \"please enter in multiple files/folders you want to copy to $mnt\"\nwhile true; do\n read -e path\n echo $path >> /scripts/path\ndone\n<\/code><\/pre>\nit works but now once the user has entered in all the paths he wants i want them to press ctrl+q to exit out the loop and then continue on with the script<\/p>\n
thanks,
\nrob<\/p>","upvoteCount":1,"datePublished":"2024-06-20T11:56:02.519Z","url":"https://community.spiceworks.com/t/while-true-break-with-ctrl-q/1088517/1","author":{"@type":"Person","name":"robertkwild","url":"https://community.spiceworks.com/u/robertkwild"}},{"@type":"Answer","text":"
this will do<\/p>\n