I want to replace a directory path(/home/cmac) insine root/c4/build/makeit where makeit it a file written in vim editor and in that script I have mentioned the path which needs to be replaced, with a variable name. I want to make the script in the root so that anywhere this /home/cmac/ is used gets replaced with the variable since /home/cmac/ is common in each path. Can you please help me out?
Be a part of the DaniWeb community
We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.