Domain Name Forum  
Domain Name Coupons

Domain Name Forum

Domain Name Appraisals

VPS FORUM

Expired Domains

Domain Name Tutorials

Parking & Traffic Monetization

Domain Registration Reviews and rating

Domain Name Offers And Requests

Go Back   Domain Name Forum > Web Design & Development > Programming > Shell Scripting
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 03-23-2011, 01:08 PM
webdev webdev is offline
Senior Member
 
Join Date: Jun 2009
Posts: 7,868
Default Basic shell scripting 101 - Looping

Hi- Was wondering if I could get help with a shell script I am writing to read in 10 -20 directories from a filesystem and then pause, press any key and then read in another 10 or 20 directories and pause again until I read them all. Here is my code - a bit embarrassing...
__________________
Website Development
Domain Name Forum
Reply With Quote
  #2  
Old 01-17-2015, 01:22 PM
Apple200 Apple200 is offline
Junior Member
 
Join Date: Jan 2015
Posts: 13
Default

Nice post. Thank you for taking the time to publish this information very useful!
__________________
192.168.l.l
Reply With Quote
  #3  
Old 07-29-2017, 11:52 AM
steffidsouza46 steffidsouza46 is offline
Member
 
Join Date: Jun 2017
Posts: 58
Default

As a result, we have for and while loops in the Bourne shell. This is somewhat fewer features than other languages, but nobody claimed that shell programming has the power of C. #!/bin/sh for i in 1 2 3 4 5 do echo "Looping number $i" done.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:12 AM.

| Webmaster Forum | | Domain Name Forum |



Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.