Hi. I am trying to copy a list of arguments that are separated by spaces and follow a specific flag (eg -l) to a string. How can I achieve that in bash? Thanks in advance.
Hi. I am trying to copy a list of arguments that are separated by spaces and follow a specific flag (eg -l) to a string. How can I achieve that in bash? Thanks in advance.
If I get it right, you want multiple words to be passed as a single argument to a program. This can be achieved by enclosing them in double( and single? ) quotes.
Devoted my life to programming...