How would i use regular expressions to change text in vi. For example I have file.txt file and I want to change word block to unblock. Please give me whole syntax since I am begginer with Regular expressions. I found some stuff on google but it is all too advanced. I dont understand people that write things for experts cause for the hell sake expert doesnt need instructions. But for begginer there is nothing on the whole internet how to learn regular expressions.
How would i replace above mentioned word in text file
:%s/\<block\>/unblock/g I tried this as advised by one guy but bash is giving me error