You must log in or register to comment.
redlemace@lemmy.worldEnglish
9 daysThe $ is unquoted and so it’s interpreted as a if variable name will follow. That does not happen (a literal string follows the $) so it casts an error
You probably are looking for this : rm -r ‘folder’$‘003’
The slash will cause the shell or interpret the next character literally (as as $ and not as variable indicator)
BlackEco@lemmy.blackeco.comEnglish
9 daysYou should wrap
rm -r 'folder'\$'003'in backticks, because in my Lemmy client the backwards slash wasn’t showing.- Calfpupa [she/her]@lemmy.mlEnglish9 days
You put an extra backslash in there, it should be
rm -r "folder'\$'003"





