Ravi Sir's Cards › AWS (मराठी)
फक्त bash ने words count?
हा interview प्रश्न आहे: “फक्त bash ने words count?” थोडक्यात उत्तर: declare -A counter. प्रत्येक word ला +1. कसं आणि उदाहरण खाली card text मध्ये दिलं आहे.
कार्ड मजकूर वाचा
या कार्डवर काय आहे
हे काय आहे
declare -A counter.
का महत्त्वाचं
प्रत्येक word ला +1.
((cnt[$w]++))
कसं / उदाहरण
Keys आणि values print.