Answer the question
In order to leave comments, you need to log in
How to implement Associative Arrays in SH(ash)?
The question is how to write down some kind of associative arrays on sh (More precisely, on ash, which is part of BusyBox'a)
More specifically, there is a folder with files and there is an array with "file name" -> "some value" pairs (value - text + numbers +spaces+characters "!?,.#"
The script takes the file filename from the folder, searches in the list, if it finds it writes filename+string, if not - filename+default_string (Or it doesn't display anything at all)
. cat, awk, sed, grep.
Answer the question
In order to leave comments, you need to log in
If you get off the yoke of a php programmer and stop calling hash tables as associative arrays, life will be easier for you: stackoverflow.com/questions/1494178/how-to-define-...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question