Sunday, February 28, 2016

Try 'rm ./-.tmp.0001.bam' to remove the file ‘-.tmp.0001.bam’. Try 'rm --help' for more information

This is because the file I want to remove starts with an '-' in its name.

To remove a file whose name starts with a '-', for example '-foo',
use one of these commands:
  rm -- -foo

  rm ./-foo

No comments:

Post a Comment