Quoted By:
t. someone who uses bash and Linux regularly but has some questions anyway.
1. I have a string (let's call it $string) that may or may not contain characters that can be escaped. If I have an array $arr=($string) what I need to do to make sure that characters that can be expanded won't? For example, if $string=* then arr=($string) will have as elements contents of the PWD, not only one element "*" (though in this example surrounding $string with double quotes helps that will not work if I want multiple elements from a multicharacter string, e.g. in case $string="lmao * lol" I want $arr to have three elements, "lmao", "*" and "lol").
2. What is the purpose of and how to use eval command?
3. What is the purpose of and how to use expr command?
4. What is the purpose of and how to use cut command?
5. What is the purpose of and how to use tr command?
6. What does prefixing a command with "\" actually do?
7. What are all the different types of words found in bash (e.g. builtins, keywords, commands, etc.) and how do they all differ?