Originally Posted by rhellinuxsa
Hi i want to replace a content in a file that contains in a file that starts with '#' if '#' is not there also replace a the respective path.
# this is a general for giving the path
replace it by removing the '#' and puting the path like
if '#' is not there also replace it with
using sed command.
kindly help as its very urgent
You seem to know pretty much what you want to do, and also the correct system call to perform that action with, "sed".
Why don't you post what you have tried rather than "kindly help as its very urgent"
Unless the instructor has already collected papers ... in that case just wait for the review tomorrow in class. (Provided you attend)