Link to home
Start Free TrialLog in
Avatar of dorinda
dorinda

asked on

While Loop

Is there a way to write the a while loop with a wildcard.  I can do the command with a For loop but would really like to make it work with a while loop.  For example:  
   cd /etc
   for x in b*
   do
   echo $x
   done

ASKER CERTIFIED SOLUTION
Avatar of dgrimes
dgrimes

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial