![]() |
Re: [Linux bash] Why is this not working?
try
Code:
if /sbin/ifconfig usb0 > /dev/null 2>&1 |
Re: [Linux bash] Why is this not working?
Quote:
Code:
if [ "${my#*bc}" != "$my" ] |
Re: [Linux bash] Why is this not working?
Quote:
You should really install a shell with better scripting support if you need regex and follow the countless shell-scripting tutorials on the net - unless maybe you want to deploy it elsewhere. Just make sure you're reading a tutorial for the right shell, since shell scripting != shell scripting. |
Re: [Linux bash] Why is this not working?
Quote:
|
Re: [Linux bash] Why is this not working?
You are right! I tried it and it works. I'm sorry. But I wonder where this is documented. I had a look at busybox.net and couldn't find anything about scripting or regular expressions. Not even in the manual page: http://busybox.net/downloads/BusyBox.html
Care to give a keyword or link? |
Re: [Linux bash] Why is this not working?
the shell built into busybox is the "Almquist shell" (or, more precisely, the debian ash variant.)
your best bet for documentation would probably be this, that's the posix documentation for -compatible shells. |
Re: [Linux bash] Why is this not working?
If you run linux on your PC and ash is installed:
> man ash contains all of it. Unfortunately man and manpages are not preinstalled on N900 :°( |
All times are GMT. The time now is 12:36. |
vBulletin® Version 3.8.8