Search Results

Search: Posts Made By: chilicuil
6,517
Posted By chilicuil
I wasn't expected so high quality answers, thanks...
I wasn't expected so high quality answers, thanks for all the them, at the end I used a modified version of Akshay's answer:


[akshay@localhost tmp]$ cat position.awk function usage()
{
...
6,517
Posted By chilicuil
How to get index values for multiple matches in the same line with awk?
Hi,

I know that

echo "bob alice robert alice" | awk '{print index($0,"alice")}'
5Will output the index of the first alice match, is there any way to get the index of all matches?, eg:

...
2,843
Posted By chilicuil
Thanks Walter, Your modified code works...
Thanks Walter,

Your modified code works great with busybox v1.13.3 and way faster than my current shell implementation which I'm posting below in case someone is curious about.


_decode64_sh()...
2,843
Posted By chilicuil
This function (decode64) runs on gawk but not on busybox awk
Hello,

I'm trying to figure out a way to use a decode64 function in an embedded system who has few utilities, including busybox.

Right now have something like this (taken from "google...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 10:44 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy