Operating System - HP-UX
1758561 Members
1755 Online
108872 Solutions
New Discussion

finding file with for loop

 
SOLVED
Go to solution
Steven Schweda
Honored Contributor

Re: finding file with for loop

> I don't want to use find because I don't
> want to go on sub-directories... but we
> have perhaps any find option(s) to avoid
> search on sub directories...

Easy with GNU "find". Previous Forum
discussions showing exactly how should be
easy to find.

So, you prefer the command-line-too-long
problems which arise from careless use of
wildcard file specifications (like "*")?


> Steven has a sharp eye!

Not really.

> ls: 0653-341 The file *.bak does not exist.

I've only seen one UNIX (-like) OS which
has useful error codes like this, and that's
AIX. (Very startling for a VMS user to find
a UNIX OS which showed some evidence of
having been designed, instead of just cobbled
together, hence memorable.)