help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-bash] Understanding -X of compgen


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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]