<< basically adds the parameter to the object. 'f' << 'oo' # -> 'foo' and [1] << 2 # -> [1,2]
but it might be a left shift also ;) 2 << 3 # -> 16
it shifts the bit representation of a number. 0b001 << 1 # -> 0b010
with 0b001 == 1 and 0b010 == 2
#!/bin/bash
DIR="/media/MDrive/"
DIR2="/media/ZDrive/"
DIR3="$DIR $DIR2"
DIR4="masterDownloads"
#echo $DIR3
IFS=$'\n'
#for i in $(find $DIR -type f -printf "%f\n")
for i in $(find $DIR -type f)
do
echo "Processing... $i"
mkdir -p ./$DIR4/$(dirname $i)
ln -s $i ./$DIR4$i
clear
done