And yeah, I agree with Beal for beeing cautious using this feature. we need to know how extglob works so we won't get in trouble.
[odroid@host:~/fossil/cwal/s2]$ ls unit/!(*.s2) This won't match files outside "unit", so if there are files to be committed outside that door, you need to handle them too. Alysson Gonçalves de Azevedo "Anarcho-syndicalism is a way of preserving freedom." - Monty Python 2014-06-19 15:25 GMT-03:00 Andy Goth <andrew.m.g...@gmail.com>: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On 6/19/2014 11:09 AM, Alysson Gonçalves de Azevedo wrote: > > Hi all. Just like Beal shared with us the # trick, today i'll share > > how i can commit all except one file using negative patterns > > < > http://www.cyberciti.biz/faq/linux-bash-delete-all-files-in-directory-except-few/ > >, > > > > > something like !(file). > > Here's more on this feature: http://en.chys.info/2009/02/extglob/ > > You've demonstrated the utility of !(file), but I was unsure of the > other extglob modes such as @(). The link explains. > > And yes, you need to do "shopt -s extglob" to turn this feature on. > > - -- > Andy Goth | <andrew.m.goth/at/gmail/dot/com> > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v2.0.22 (MingW32) > Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ > > iQEcBAEBAgAGBQJToysSAAoJELtYwrrr47Y4nbIH/AlXbFBhk12AMcbgqvidd4K8 > tU6sMbU+0XhQfdhjwnmjpZKWvHSSvT8qCVCd+fDAvrWm3g3tL7PFMSbXQpCEypZD > PVKWlG3G7T/wA1zWsJ/kuRWR4+3BbP5mjDwVqtrSnARAzDLMZX+U0wO/XlkMMgUa > kpYpGIfbufq2UikDNVqDDjDaJyL4Kn2qyHTWsrD5zljwQkjxXRSqjDQKGV+jkTgL > UVkT++wTp+NCgW194eDrEDy55437cUQqPEbQ0K9G6rCRDN9rM+IQCJZFkc5uvxvM > Qr1txwJHgI94kb1kDR0F32tOAWZkFr7etiAqLoz6Y6laWFtUp9Nk8Zi5faFKNIs= > =kcQZ > -----END PGP SIGNATURE----- > _______________________________________________ > fossil-users mailing list > fossil-users@lists.fossil-scm.org > http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users >
_______________________________________________ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users