View Single Post
Old 09-02-2018, 09:03 PM   #58
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,478
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
@PoP: I could use a cheat-sheet of which number gets replaced by which pipe, but it's crazy enough that I like it .

EDIT: I *think* busybox ash supports the slice substring operation (${var:}), which might allow you to fake an array (i.e., BLAH="ABCD"; IDX="1"; echo ${BLAH:$IDX:1} => B), and a such fake LUTs for the replacements, which might be a tad faster than calling sed like crazy, since the substring operation should be builtin (... and hopefully faster than sed) .

Last edited by NiLuJe; 09-02-2018 at 09:10 PM.
NiLuJe is offline   Reply With Quote