Thread: Problem while replacing a directory with some variable
i have written script under path root/c4/build , in script have mentioned path /home/cdot/c4. want replace /home/cdot variable. have make script in root directory replace path /home/cdot inside root/c4/build variable. can plaese me?
thanku
you want script modifies script? try using sed:code:sudo sed -i s:/home/cdot:your_variable:g /root/c4/build
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support New to Ubuntu [ubuntu] Problem while replacing a directory with some variable
Ubuntu
Comments
Post a Comment