[SOLVED] College Class Help(vi)
Hi i'm brand new to the forum. I am taking a linux/unnix class at my school. The professor would like me to find and replace a phrase in a document he created for homework. However, the phrase is "all special characters!" he makes a note of it that we will have to escape the special characters in vi with \ and there should be 8 of them i use all 8 and it never works! I'm so confused!
**/**/** thats what we are to search for and replace with NEVER
so i've tried :1,$ s/*\*\/\*\*\/\*\*\/NEVER
and i get *\*\/\*\*\/\*\*\/NEVER pattern cant be found
then i tried :1,$ s/*\*\/\*\*\/\*\*\ /NEVER
and get :1,$ s/*\*\/\*\*\/\*\*\ can't be found
then i tried :1,$ s/\*\*\/\*\*\/\*\*\/NEVER
and once again get pattern can not be found
I just can't understand it because i'm using all 8 backslashes like he wants but i can never get it right. The only time i came close was when i messed up and i got all the stars to highlight but not the backslashes
he wants the entire phrase **/**/** changed to NEVER
for instance "Your mom **/**/** washes the dishes"
to "Your mom NEVER washes the dishes"
I know i'm brand new to this forum and I'm posting a question the day i registered but i really need some help and idk where else to go. And i'm so sorry if this question has already been answered somewhere else , I dont think i know what i'm looking for i searched for "escaping special characters" on here and google and just got a whole bunch of code and where not doing code till around the 12th week. I would really appreciate any help i'm so lost and confused :(