4

Search and replace text

view full story
linux-howto

http://www.unix.com – Hello, I am trying to search and replace but I don't know how to do it. My simple knowlegde in search and replace using sed is not helping me at all. File: Code: its a cause value #22: dfg ggg Cause value #1: aasfa fasdf asfa value #22: affg gggg Basically i want to replace the colon(:) with hash (#) while retaining the rest of the words on that line. this is the format: Code: value #[can be any number]: The logic would be like: 1. Find the line containing the word "value #22:" (22 can be any number) 2. Replace the colon with hash, "value #22#" I need to chan (HowTos)