[PLUG] looping over file names in numeric order in bash?
Rich Shepard
rshepard at appl-ecosys.com
Wed Feb 7 17:45:40 UTC 2007
On Wed, 7 Feb 2007, Galen Seitz wrote:
> Given the following file names, is there an easy way to loop
> over them in numeric order?
> data1.ps data11.ps data3.ps data5.ps data7.ps data9.ps
> data10.ps data2.ps data4.ps data6.ps data8.ps
Galen,
Is using a two-digit number for all files an option? That works, if it
fits how these file names are generated.
Rich
--
Richard B. Shepard, Ph.D. | The Environmental Permitting
Applied Ecosystem Services, Inc. | Accelerator(TM)
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863
More information about the PLUG
mailing list