[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]
# is same as # ~/Dropbox/files_ma/computing/shell_script/gen_numbers.sh # of 070604 cnt=0 while [ $cnt -lt 38 ] do let cnt=cnt+1 echo $cnt touch ${cnt}__.txt done Creates 38 files in numbered name order. “gen_numbers.sh” is # 04 June 2007 # "i=0" unnecessary - is default assumption # emacs - use with "C-u M-!" to put into buffer i=0; while [ $i -lt 33 ]; do let i=i+1; echo $i; done No idea what I was doing on 04 June 2007 I was working in a steel fabrications company in Camberwell, London - which would have made a good “sit-com”. Half the people tendered their resignation by punched the boss’s lights out, etc. You’d have thought he’d get averse to coming-around on his back on the floor, but no... So no idea what the programming connection was. Message to younger ones - the durability of unix methodology; durability of your files; etc. Work hard and the method will go forward with you. You can even “shell-script” some image processing. eg. I can screen-grab my Finite Element Analysis program output (it runs on Windows) on trim-out just the visual display part with “imagemagick” doing the same crop on each image. Run the script, look through your images and compose the engineering analysis story direcdting all human effort to the engineering subject. Best wishes, Rich Smith C1 C2 C3 FI 36 C3 -- The Mailing List for the Devon & Cornwall LUG FAQ: https://www.dcglug.org.uk/faq/