Re: Shellscript syntax question

2006-01-10 Thread Jan Grant
On Mon, 9 Jan 2006, Frank Staals wrote: About the asteriks : No they weren't but for some reason Thunderbird had problems with the color remaining from the KATE Syntax-hilighting. Anyway: thanks for the solusion, but what would be the expressions for less or equal and greater or equal ? As

Shellscript syntax question

2006-01-09 Thread Frank Staals
Hey, I'm trying to write a ( simple ) shellscript to move files arround, for this reason I wanted to check wether 'episode_last' has a higher value than 'episode_first' ( so that last can't be 3 if first is 60 ). So I tried : *if** [* ${episode_last} ${episode_first}* ]*; *then

Re: Shellscript syntax question

2006-01-09 Thread Frank Staals
Frank Staals wrote: Hey, I'm trying to write a ( simple ) shellscript to move files arround, for this reason I wanted to check wether 'episode_last' has a higher value than 'episode_first' ( so that last can't be 3 if first is 60 ). So I tried : *if** [* ${episode_last} ${episode_first}*

Re: Shellscript syntax question

2006-01-09 Thread Dan Nelson
In the last episode (Jan 09), Frank Staals said: I'm trying to write a ( simple ) shellscript to move files arround, for this reason I wanted to check wether 'episode_last' has a higher value than 'episode_first' ( so that last can't be 3 if first is 60 ). So I tried : *if** [*

Re: Shellscript syntax question

2006-01-09 Thread Frank Staals
Dan Nelson wrote: In the last episode (Jan 09), Frank Staals said: I'm trying to write a ( simple ) shellscript to move files arround, for this reason I wanted to check wether 'episode_last' has a higher value than 'episode_first' ( so that last can't be 3 if first is 60 ). So I tried :

Re: Shellscript syntax question

2006-01-09 Thread Dan Nelson
In the last episode (Jan 09), Frank Staals said: Dan Nelson wrote: In the last episode (Jan 09), Frank Staals said: I'm trying to write a ( simple ) shellscript to move files arround, for this reason I wanted to check wether 'episode_last' has a higher value than 'episode_first' ( so that

Re: Shellscript syntax question

2006-01-09 Thread Will Maier
On Mon, Jan 09, 2006 at 09:20:42PM +0100, Frank Staals wrote: Anyway: thanks for the solusion, but what would be the expressions for less or equal and greater or equal ? man 1 test the '[' and ']' that surround the if-statement are shorthand for the test(1) utility. The man page has a list

Re: Shellscript syntax question

2006-01-09 Thread Luke Bakken
About the asteriks : No they weren't but for some reason Thunderbird had problems with the color remaining from the KATE Syntax-hilighting. Anyway: thanks for the solusion, but what would be the expressions for less or equal and greater or equal ? Frank, Since you're getting into shell