cmdchallenge icon indicating copy to clipboard operation
cmdchallenge copied to clipboard

Remove files without extension problem

Open ladecadence opened this issue 7 years ago • 2 comments

If I try to use rm **/*.!(exe|doc) I get "syntax error near unexpected token `('" That line is a valid bash expansion.

ladecadence avatar Jan 28 '17 15:01 ladecadence

While I don't think that this is a correct solution, this expansion could certainly be used to construct one.

I think this is caused by #84

0ki avatar Feb 03 '17 04:02 0ki

The purpose of the site is to challenge you! Not show off how one or another command fails. Imagine you ssh into a machine and you have just bash of whatever version that doesn't support above solution. What do you do? Give up? Or come up with another, working solution?

That's the challenge.

avioli avatar Feb 03 '17 08:02 avioli