Is it possible to do for exemple: ls -l * which print the content of all a directory.
And add an exception, for exemple, test.cpp
In order to print all files except the test.cpp.
Tell me more
×
Super User is a question and answer site for
computer enthusiasts and power users. It's 100% free, no registration required.
|
|
You can do it with a glob if you have
And you can use it like:
and it can be used in other ways, too:
Since this is a shell glob it can be used with other commands as well. One side effect, however, is that it causes any subdirectories to be listed explicitly, which means that
|
|||
|
|
|
The classic (naive?) way to do this would be
However, as Lamar commented, GNU
Note |
|||
|
|