Subject: Re: MAKEDEV prob
To: Lennart Augustsson <lennart@augustsson.net>
From: Steven M. Bellovin <smb@research.att.com>
List: current-users
Date: 05/07/2003 10:33:34
In message <200305071426.h47EQ0B16572@calvin.augustsson.net>, Lennart Augustsso
n writes:
>> who cares?  just remove all the leading zeroes, and add this:
>> 
>>         j=$(echo 0$j | sed 's/.\(..\)/\1/')
>Is sed always available when you want to run MAKEDEV?
>
>	-- Lennart
>
expr is in /bin, and the following works:

	j=`expr $j : '.*\(..\)$'`

But I haven't checked if expr (or, for that matter, sed) are on the 
install disks.


		--Steve Bellovin, http://www.research.att.com/~smb (me)
		http://www.wilyhacker.com (2nd edition of "Firewalls" book)