Date: Mon, 09 Jan 2006 20:52:02 +0100 From: Frank Staals <frankstaals@gmx.net> To: Frank Staals <frankstaals@gmx.net> Cc: questions@FreeBSD.org Subject: Re: Shellscript syntax question Message-ID: <43C2BEE2.6020306@gmx.net> In-Reply-To: <43C2BE4A.4070601@gmx.net> References: <43C2BE4A.4070601@gmx.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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}* ]*; *then > <code> > fi > > *As I thought what would have been the correct syntax, but I got this > error when running the script : > ./massmove: line 136: 05: No such file or directory > > '05' was the value of $episode_first and '01' was the value of > $episode_last > Can someone tell me what I'm doing wrong/ what it should be and where > I could find such info. I tried searching in google about this, but I > wasn't able to find anything usefull. > Thanks in advance > damn The copied collors in the syntax-hilighting in KATE screwed up my code: it should be: if [ ${episode_last} < ${episode_first} ]; then <code> fi -- -Frank Staals
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43C2BEE2.6020306>