The problem: I have a slow USB stick I'm trying to put music on. Over several hours it generated some errors and I stupidly lost the list. Now I want to verify the files via their filesize. But those pesky spaces are smarter than my google-fu.
Code:
#!/bin/bash

OIFS="$IFS"
IFS=$'\n'

OTHERDIR="/mnt/l/Music/Peter Gabriel/"

for myDir in `find . -type d `; do
    src="$OTHERDIR$myDir"
    echo "$myDir"
    echo "$src"
    diff `ls -s "$myDir"` `ls -s "$OTHERDIR\"`
done

IFS="$OIFS"

The...

Read more

LEGAL_NOTICE: This website acts solely as an automated content aggregator. We do not host, store, or upload any media shown above. All content is indexed via machine logic from external sources.