Use command shopt to see and set linux shell options.
For example, shopt -s extglob sets extglob to on. You can now use negative glob expressions in commands, such as rm !(*.dnd) to delete all files except those ending with .dnd.
For example, shopt -s extglob sets extglob to on. You can now use negative glob expressions in commands, such as rm !(*.dnd) to delete all files except those ending with .dnd.
No comments:
Post a Comment