stackoverflow.com
for dir in /tmp/*/ do dir=${dir%*/} echo ${dir##*/} done
stackoverflow.com
Ctrl+Z to stop (pause) the program and get back to the shell bg to run it in the background...
Best results in other decks
Last 12 symbols from UUID: uuidgen | tail -c 12 First 8 symbols from UUID: uuidgen | head -c 8
gist.github.com
Reads the lines of the specified file into an array. The resulting array is in the dedicated variable, MAPFILE.