I'm trying to escape the space char for a path in Bash, but neither using a backslash or quotes works.
I'm trying to pass multiple argument to a function, but one of them is consist of two words and I want shell function to deal with it as one arg:
I'd like to build an error handler which will make an empty file marked with the error_occur time.
The core idea is to use the result of date command as a parameter.
$ echo $a
$ echo $a
I'm stumped hard by the result b while I expect to see ["apple,"ball","cat"]. What am I missing here?
I'm trying to create a directory which has space in name e.g. "user test"
when I fire mkdir -p "user test" it works for me.
When I put "user test" in variable mkdir fails, it creates "user and test" ...
I am trying to copy some files with spaces and $, @ symbols in their file names in a bash script but the script fails to copy the files stating it cannot find the file. I can see that it is treating ...
In Bash, when I do:
It expands * to the contents of the current folder. How do I make sure it just prints a literal *?
The same, by the way, happens with a regular echo "$foo", it ...