Operating System - HP-UX
1753789 Members
7213 Online
108799 Solutions
New Discussion

Re: AWK assistance! Please

 
Volker Borowski
Honored Contributor

Re: AWK assistance! Please

Hi folks,
interesting thread !

Just did some tests on a UX 11 with root and other users in sh and csh.

Now did you expect, that

ls -1
is diffrent from
ls -1 *

???

OK, no suprise:
ls -1 * goes into directories and lists what's in in addition. This can be caught by "ls -1d".
BUT, suprise:
as root in sh, 'ls -1' lists hidden files while 'ls -1d *' does not.

Which is diffrent for a common user in csh.

Hey Chris, however you solve it, I recommend to verify that whatever wildcard you choose, it meets what you want.
:-)

Volker