little script
#!/bin/sh
cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 24 | head -n 4
printf 'do you like this? (y/n)? '
read answer
if [ "$answer" != "${answer#[Yy]}" ] ;then
echo Yes
else
echo No
goto?!? jumpto?!? urandom line
fi
it reads from urandom and ask if this ok, if yes the script end.
if not yes, i will read and ask again - how to do this?
do i need goto? or jumpto or anything other?
Asked by user447274
(539 rep)
Jul 10, 2024, 08:32 AM
Last activity: Jul 10, 2024, 01:40 PM
Last activity: Jul 10, 2024, 01:40 PM