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?
Thanku
ankitarajdev 0 Newbie Poster
JasonHippy 739 Practically a Master Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.