Tuesday, January 4, 2011

Linux shell options

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.

No comments:

Post a Comment