"ls .?*" is another "ls -A" equivalent.
Hidden files or directories are hidden. What part of that are some people
missing. You have to tell the system to expose those "hidden" items for many
operations such as listing files, which this abuse of "du" is showing. (Isn't
"ls -l" simpler? I alias that to "ll" and "lla" is "ls -lA".
This thread is amusing and bemusing for the willful disregard for standard 'ix
behavior since virtually the beginning of 'ix time.
{^_-}
On 20180313 16:28, Ed Greshko wrote:
On 03/14/18 05:22, Ed Greshko wrote:
The later command is basically creating a list of files (a shell function) and doing
a "du" on each file individually.
Here is another example to show you what is happening....
[egreshko@meimei test-dir]$ ls
stuff test test1 test2
[egreshko@meimei test-dir]$ cat stuff
tes
te
te*
[egreshko@meimei test-dir]$ grep te stuff
tes
te
te*
[egreshko@meimei test-dir]$ grep te* stuff
[egreshko@meimei test-dir]$
But if I change to a directory which contains no files....
[egreshko@meimei test-dir]$ cd .hidden
[egreshko@meimei .hidden]$ ls
[egreshko@meimei .hidden]$ grep te* ../stuff
tes
te
te*
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx