Please note that you were supposed to delete the entire line containing the word copyright but you only deleted the word itself, hence your answer was marked as failed.
Please notice the spaces before and after copyright (sed ‘/ copyright /d’) in your command that made it not to match the pattern hence changes were not made correctly.
ssh clint@stbkp01
sudo su -
ls -al( to check if Nautilus.xml file is present in root)
cat /root/nautilus.xml (to view how many instances of old String value are there)
sed -i ‘s/String/Submarine/g’ /root/nautilus.xml
cat /root/nautilus.xml (all instances are changed to new string )
Hi,
so this is where we’re going wrong:
in the task one it says delete “all lines” containing the word software, but we’re trying to delete just the word, so try this:
sed ‘/software/d’ BSD.txt > BSD_DELETE.txt
replace the word software with the word asked in the task
I have similar issue , can someone review and advise.
[root@stapp03 home]# sed -i ‘/copyright/d’ /home/BSD.txt > /home/BSD_DELETE.txt
[root@stapp03 home]# sed -i ‘s/and/their/g’ /home/BSD.txt > /home/BSD_REPLACE.txt
[root@stapp03 home]#