Re: string to integer

2010-05-05 Thread Javier Montoya
On Mar 19, 6:04 pm, DennisW wrote: > On Mar 19, 6:50 am, Javier Montoya wrote: > > > > > On Mar 19, 12:39 pm, Javier Montoya wrote: > > > > Dear all, > > > > I have a several directories with *.jpg images. The image files are > > > named as

Re: string to integer

2010-05-05 Thread Javier Montoya
On Mar 19, 12:39 pm, Javier Montoya wrote: > Dear all, > > I have a several directories with *.jpg images. The image files are > named as ascending numbers and I would like to retrieve the lowest and > largest image number in each directory. An example of the content of a >

string to integer

2010-05-05 Thread Javier Montoya
Dear all, I have a several directories with *.jpg images. The image files are named as ascending numbers and I would like to retrieve the lowest and largest image number in each directory. An example of the content of a directory is given below: /bla/bla/bla/dir1 -> 0.jpg -> 1.jpg -> -> 09

Processing a file into smaller chunks

2010-05-05 Thread Javier Montoya
Dear all, I'm a newbie with bash programming and I'm trying to process a file into smaller chunks. Let's say I've to process the file below ('X' and 'Y' are any possible float number): 0 0 0 0 0 0 0 0 0 0 0 0 X X X X X 1.70 0 0 0 0 0 0 X X X X X 1.60 0 0 0 0 0 0 X X X X X 1.30 Y Y Y Y Y 1.90 0 0