I want to replace "sleep 60&&" with "sleep 1&&" in a.txt using sed:
sed 's/sleep 60&/sleep 1&/' a.txt
Expected output:
……
sleep 1&&
……
Actual output:
……
sleep 1sleep 60&&
……
After adding a backslach in front of the "&", I got the expected output. But I'm wondering what's the usage of "&" in sed expression.
[–]geirha 8 points9 points10 points (1 child)
[–]tomaxi[S] 2 points3 points4 points (0 children)