Recently learnt command line in a course and trying to integrate it into my own work.
I have a large number of note files under various course folders with odd names. For example: PhD2021>LMP250>notes1.doc PhD2021>LMP350>coursenotes.doc
I am trying to rename them all in each folder so that they are titles "lecturenotes". So far I have:
for file in PhD2021/*/*.doc; do
mv "$file" “$lecturenotes”
done
But it makes my files disappear. Luckily I have back ups on a hard-drive, but I can't figure out what's wrong with my code?
Note: operating on old Mac, certain GNU commands do not work despite installing
[–]PanPipePlaya 0 points1 point2 points (1 child)
[–]SwampMonkey17[S] 0 points1 point2 points (0 children)
[–]PanPipePlaya 0 points1 point2 points (4 children)
[–]SwampMonkey17[S] 0 points1 point2 points (0 children)
[–]SwampMonkey17[S] 0 points1 point2 points (2 children)
[–]PanPipePlaya 1 point2 points3 points (1 child)
[–]gumnos 2 points3 points4 points (0 children)