bash - list all files matching a given pattern -
i have directory /folder1/folder2 containing 2 type of files:
- file.txt
- file.txt0* (* means number)
i wrote script list files matching pattern "file.txt0*" occurrencies in folder "/folder1/folder2":
find -wholename /folder1/folder2/file.txt0*
but returns nothing.
any suggestion?
make sure in proper relative directory. below should work, if in root folder , folder1/folder2
present in /
(root)
find /folder1/folder2 -iname file.txt0*
-i
case-insensitive search.
Comments
Post a Comment