Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Ugh... Did you actually try this?

Your point is correct -- Bash is treating these as strings. I didn't have your file names so I tried a similar example, and I just realized I have to correct my example. I have a directory of graphic files with embedded numbers with leading zeros, for example 001 to 031. I was able to say:

$ ls geographic_harbor_2012_06_02_*{1..31}.JPG

And get all the members. But it's not the same as your example.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: