I write a script on bash.
It opens a file in which bash commands that need to be executed are stored line by line.
Suppose I have a variable in which I saved the line
ls -l
How to make it run?
Wait i do first
a=\`cat ..\folder\file\`
Well, then b = $a
refuses to work (there is one line in the file).
I want to scatter commands from a file into an array, and then, at my discretion, execute them. Each variable will have one command, for example, "grep blablabla", "touch xxx", etc.