Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • I did not think of this shell trick yet, simple and useful! Commented Jul 7, 2015 at 16:00
  • I just tried this and I didn't work. It lists all files except backup.log. What I want is to list all log files except backup.log. Commented Jul 7, 2015 at 16:42
  • @JavierCintrón: Did you use !(backup).log or !(backup.log)? Commented Jul 7, 2015 at 16:45
  • 1
    Geez man :) I used ls !(backup.log). I confirm that ls !(backup).log is the solution for my problem. Commented Jul 7, 2015 at 16:50