I have an error with the task Linux String Substitute (sed)
I didn’t find a better solution than to create a review of the issue KodeKloud Engineer | Real Project Tasks on Real Systems
As you can see, home folder doesn’t have BSD_REPLACE.txt file
Similarly, I wasn’t able to create files into any folders. Please take a look at my other attempts.
HI @Mike-Palii ,
So sorry for the late response, we appreciate your patience, based on the review task, the issue is on the redirect permission. To fix it, you have two options :
sudo sh -c "sed '/code/d' /home/BSD.txt > /home/BSD_DELETE.txt"
or connect to as root directly
sudo -s
sed '/code/d' /home/BSD.txt > /home/BSD_DELETE.txt