Thread: rm command (with warning)
i had directory containing duplicate files, filename containing (copy), e.g. a4-prices.pdf , a4-prices (copy).pdf
rid of copies, ran command (don't try @ home, kids!)which deleted files in directory (leaving directories).code:rm * (copy) *
question is, why?
because of spaces. delete *, (copy) , again *. first *, deleted. need escape spaces backslash:
or using quotescode:rm *\ (copy)\ *
maybe need escape brackets too, don't know sure. can try rm command using ls instead of it.code:rm "* (copy) *"
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support New to Ubuntu [ubuntu] rm command (with warning)
Ubuntu
Comments
Post a Comment