NoStop said:
Geez. OK, I didn't understand then what you wanted. If you want all hidden
files or directories, but not . and .. then try:
ls -Al
Geez. OK, I didn't understand then what you wanted. If you want all hidden
files or directories, but not . and .. then try:
ls -Al
well, you had me right the first time.. I may have mistakenly added 1
problem just now, similar to all the rest - or perhaps I was thinking
that perhaps that one would be solved by ls even if the others
couldn't!. But that doesn't change the originals.. The problem is
related to the others. ls -Al solution isn't it.
ls -Al doesn't show all hidden files or hidden directories. (though it
does exclude . and ..)
ls -Al does everything whether hidden or not hidden. I wanted only
hidden!
i'll simplify my original problems. No 'ors'
Only hidden files.
Only hidden directories
Only files
The problem most recently mentioned, -
Hidden files or hidden directories. ( it's not ls -Al !! )
of course, when I say files, I mean non directories.
<snip>
These are all related problems, I can't see any of them solved.
Not even the last one!
They are trivial in DOS, and should really be trivial in linux. Perhaps
they are trivial in linux. Though the solutions just aren't as tidy as
they should be. Maybe ls and grep combined are required.
You write as if I am saying DOS is better.. I'm not. I'm sure you
can do more with linux than with DOS, but it aint necessarily gonna be
pretty. They may be long/tedious(in keystrokes) and working. Or
short/neat but broken !! Short/neat but broken are fine interactively,
when you know where the breaks are and they don't matter. But if you
want 100% working solutions, it's tedious. I hope it's just ls with
these problems. Maybe one day a programmer will improve ls. Though, do
old linux commands get improved?
I did read in the man ls, or info ls (yeah, it's documented in 2
places!!), that ls is too bloated!