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.
feedback
|
|
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
| |||
|
feedback
|
|
The classic (naive?) way to do this would be
However, as Lamar commented, GNU
Note | |||
|
feedback
|