[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bad init.d scripts

Nathan Myers wrote:
> instead just be looking for the lines they want.  Further, 
> they probably should permit mixed TAB and space characters 
> at the beginning of the line:
>   white='	 ' # tab and space
>   egrep "^[$white]*foo\>" ...

Or simply (using character classes):

egrep "^[[:space:]]*foo\>"
       /'"`\  zzzZ  | My PGP Public Key is available at:
      ( - - )       | <http://home1.inet.tele.dk/renehl/>
 Don't ya just hate it when there's not enough room to fin 

Reply to: