💻 Software
How to use _one_ shell globbing expression to list all files (of course hidden files too!)?
Fresh5 days ago
Mar 15, 20262146 viewsConfidence Score0%
0%
Problem
Ok, this question targets Unix/Linux shells! I want a shell globbing (aka wildcard) pattern or GLOBIGNORE list that matches all files, including hidden files, in the current directory non-recursively (maxdepth == 1). So far, I have to perform two commands or use long workarounds (see below): while …
Error Output
ls -lad *vim* ls -lad .*vim*
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: How to use _one_ shell globbing expression to list all files (of course hidden files too!)?
Low Risk
does match a character. It simply doesn't match when it is the first character of the name. This provides a so-called "dot file" mechanism for "hiding" files. In : Set the shell option. This is in § 14.8 of the user manual. Note that and are always …
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix