we know perl gives us the facility to use hashes
%ages = ('Martin' => 28, 'Sharon' => 35, 'Rikke' => 29);
what if I want to do the same thing in shell script ??
thanks
we know perl gives us the facility to use hashes
%ages = ('Martin' => 28, 'Sharon' => 35, 'Rikke' => 29);
what if I want to do the same thing in shell script ??
thanks
Jump to PostAt least in the bash and korn shells there are associative arrays, essentially hashes.
It depends upon what you want to do. In bash scripts you can assign the output of any other executable to a variable using the back-quote character, as in:
varname=`md5sum filename`
It depends upon what you want to do.
Sorry rubberman, but did you maybe reply in the wrong thread?
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.