I am trying to write a small bash script to help sort some recovered directories/files back to their original file structure prior to the recovery. In a nutshell I have recovered a pool of disks that were pooled using aufs union file system, after the recovery of deleted directories/files I noticed that in a lot of the directories there are directories named ".wh..wh.original_dir_name.4_random_characters" for example ".wh..wh.Images.1E7W". This directory would be located in the same directory where the actual "Images" directory is located. These .wh directories are referred to as white space and are created by the aufs file system usually during delete operations but I noticed there are a lot of recoverable files/directories located in these but I would like to integrate them back into the normal structure.I am trying to write a small bash script to hel