Found this script on some media hard drive….
#!/bin/sh SAVEIFS=$IFS IFS=$(echo "\n\b") for f in * do if [ ! -d "/media/usbdisk/kidz/$f" ] then echo $(du -sh "$f") fi done IFS=$SAVEIFS
Very curious why I left it there and what is was looking for.
IFS is the field splitting \n\b is….
\b = character
\n = newline
ok that’s just to avoid splitting on a space, file names with a space…..
learnt something from myself from the past.
copied from knilluz.buurnet.nl