unSpawn: Thanks a lot, your solution appears to be working (I have not gotten to the tar and mv part yet, but so far so good).
Now, I would like to dig deeper into this, as the whole purpose is as much to make this thing work as to acquire the knowledge of how to do it.
So this si the simplified unSpawn code:
Code:
find /home/bob/Bureau/* -maxdepth 1 -type d |
while read myString; do
echo ${myString}
echo ${myString//*\//}
done
I think I grasped the pipe, the read and the placeholders in the first three lines.
What puzzles me beyond saying is this:
myString//*\//
which gives this
"saule 84" out of this
"home/bob/Bureau/saule 84"
What is this operation called? Substring replacement ? Where can I find more about this, the characters are too generic to search...
Once again than you all in advance for the time and energy that you put in educating and helping others.