FG

How to list files based on matching only part of their filename?

Fresh3 days ago
Mar 15, 202652971 views
Confidence Score0%
0%

Problem

I have many files in a folder for example From this directory, I want to know how I could use to display files based on part of their filename - for example those starting with "Account" or those ending in ".sh".

Error Output

Kiran.txt
Kiran1.txt
Kiran221.txt
Kiran144.txt
Time.csv
Timer.csv
Timer2.csv
Timer444.csv
Timer266.csv
Account.sh
Account3.sh
Account3333.sh
Account3…

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How to list files based on matching only part of their filename?

Low Risk

You can Alternative 2 (this might include folder as well) Alternative 3 (grep, this could include folder as well)

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment