by mprovost · 5y ago · 0 comments
$ ls /
$ ls /tmp/junk; rm !$
It's taking "/" rather than "/tmp/junk"..EDIT: formatting
What you want is "ls /path; rm $_".
Even then, the above is fairly pointless. At the time you look at what you are deleting, it's gone.