Tagged Questions
3
votes
1answer
156 views
Need to improve urlencode function
I need a way to URL encode strings with a shell script on a OpenWRT device running old version of busybox.
Right now I ended up with the following code:
urlencode() {
echo "$@" | awk -v ORS="" '{ ...
2
votes
2answers
229 views
non-case-sensitive sed - OpenWrt
the input would be like this in a file:
<sCripT
and the parsing looks like this:
sed -i "s/<script//g" SOMETHING.html
the "/gi" is not good, because OpenWrt doesn't knows it (busybox..):
...