I'm pretty new to unix and I'm wondering how I would go about writing a word, letter by letter into my program's memory. So for example if my word was "cup", I'd want an array A to have A[0] = 'c', A[1] = 'u', A[2] = 'p'. I've tried looking this up but couldn't find anything clear enough, sorry if this is a stupid question but I just don't know what to do. I'm using BASH for this program.
At the end I plan on just making a loop to perform this task for me but I just need to find out how to actually create the array and write a character to each index.
I appreciate any help at all, thank you.
"Shells are a higher level language. One may say it's not even a language. They're before all command line interpreters. The job is done by those commands you run and the shell is only meant to orchestrate them."
– Wildcard Dec 06 '16 at 00:45A: db "cup"
or something like that. - probably best to start a new question. – Jasen Dec 06 '16 at 04:16