Friday, June 10, 2005

excluding listing of files from ls

ls *[!"c && sh && o && 0 && 1"]

The above command should list all files other than those that end with a "c, sh, o, 0, 1".

Tested on solaris 8 && OS X (bash shell).