ERROR:"find: unrecognized: -regextype" How to fix "find" <g>

How to fix "find" ERROR:"find: unrecognized: -regextype"
#############################################################

I do run a shell script(*) which gives me an error as follows:


|-------------------------------------------------------|
find: unrecognized: -regextype
BusyBox v1.35.0 (2022-07-05 19:23:44 UTC) multi-call binary.
Usage: find [-HL] [PATH]... [OPTIONS] [ACTIONS]

Search for files and perform actions on them.

###############################################################

I was unable to find a direct call als "find abcxxx"
Could it be that "BusyBox v1.35" is somewhat old/limited
and does not "understand" "-regextupe"
I was unable to "find" :wink: any new package inside OpenWrt
How would I approach adding a suitable "find -regextype"

Sorry long time absent from shell scripts but willing to dive in.
Can some LINUXIAN scripter pls point? ...Any lead welcome
Regards

(*)the shell script is called kiauh.sh and is used to install/manage
a 3D printer Software/OS called KLIPPER :::JUST SO DO HAVE BACKGROUND

How is question related to Openwrt?

It does NOT RUN in openwrt ... but my Ubuntu/Debians have no problem with
'find: unrecognized: -regextype
'

Does your Debians and Ubuntus run busybox as default shell, like Openwrt?

(In other words, tried installing a "proper" shell in OpenWRT ?)

Sure ... albeit different versions ... so (and I am assuming "find" is in that BusyBox")
How to I get some working find ... a newer/better BusyBox into OpenWrt

...if you please :wink:

If "proper shell" in your context is spelled BASH .... yes installed - AND THANKS

Busybox offers only limited functionality for many commands, as it is a tightly packed utility targeting small size (for space constrained embedded devices)

Regex itself should be supported, though.
But not sure about regextype

Curious that you did not find the findutils.
You need to install the findutils package via opkg to get the full GNU find.

2 Likes

[hnyman] *BIG THANKS Solution Institution is very much the correct title :innocent:
ON MY WAY :kissing_heart:

Thanks - opkg install findutils
I can confirm that does contain "find -regextype"
Don't know how I could have overlooked that....
(lame excuses withheld) :wink:

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.