help-bash
[Top][All Lists]
Advanced

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

How to match period and space?


From: Peng Yu
Subject: How to match period and space?
Date: Wed, 11 Jan 2023 08:24:49 -0600

Hi,

$ ls
a.b.txt  a_b.txt

I have the above two files.  I am trying to use [] to match a point
character or a space character. But it does not work. How can I match
both a period character and a space character?

$ ls *[.' ']*.txt
a.b.txt

-- 
Regards,
Peng



reply via email to

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