Sample Header Ad - 728x90

String literal inside backticks in bash

1 vote
1 answer
2094 views
I would like to create a process that runs in the background and waits for 2 seconds and prints a literal. I'm trying to do
sleep 2 && echo "hello" &
However, it's trying to execute hello:
Command 'hello' not found
...
How can I make this work and just print hello?
Asked by Tobias Feil (123 rep)
Jul 30, 2020, 08:31 AM
Last activity: Aug 1, 2020, 09:56 AM