Reputation
Top tag
Next privilege 125 Rep.
Vote down
Badges
3
Newest
 Student
Impact
~53 people reached

  • 0 posts edited
  • 0 helpful flags
  • 9 votes cast
Jun
11
awarded  Student
Jun
11
awarded  Scholar
Jun
11
accepted Rename directory using a variable
Jun
11
comment Rename directory using a variable
Thanks thomasrutter & @kos. I manage to get it working by mv "$f" "$newd" (By adding the double quotes.)
Jun
11
comment Rename directory using a variable
Sorry I forget to mention that I did use the ` symbol on line4. I change to ' because askubuntu use ` to represent code block and I can't seem to escape it. I used your suggested code, and no error is shown. But none of the directories is renamed.
Jun
11
asked Rename directory using a variable
Jun
8
awarded  Supporter