|
| From: | Peng Yu |
| Subject: | [Help-bash] Understanding -X of compgen |
| Date: | Sat, 23 Feb 2019 10:15:33 -0600 |
Hi, I only want to keep files ending with `.sh`. But I don't quite understand how -X works. Could anybody show me how to use -X? Thanks. $ compgen -f /tmp/ -X '*.sh' /tmp/lG3BwsdIG9.date /tmp/lG3BwsdIG9.sh -- Regards, Peng
| [Prev in Thread] | Current Thread | [Next in Thread] |