Problems trying to extract gzipped archives from script
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I have another problem. I am totally new to linux. I have been given one document and in that the paths are like this i.e./home/cdot/c4/ose. My mam has asked me to replace the path i.e. /home/cdot/ with some variable. How could I do this?
Thanku for the reply but still its not working.
Here is the error which i am getting.
./script: line 11: /home/cdot/c4/ose/site: is a directory
./script: line 12: /home/cdot/c4/ACE_wrappers/TAO: is a directory
./script: line 13: =/home/cdot: No such file or directory
[root@hpv2k-57 c4]# pwd
I have been given one code and I have been asked to grep /home/cdot/c4 path in the code. Some where in the Makefiles this path is hardcoded. I have to find those paths and document it. Then I
have to replace those path with the variable where one can specify the path from my
script. I am unable to do dis.
I have found the path and it is
OSE_ROOT=/home/cdot/c4/ose and the other path is
I have to replace only home/cdot with the variable.
This is the kind of script. Its not the exact script
My mam has asked me to search for the path /home/cdot/c4 nd replace /home/cdot with some variable so that it could be assessed by that variable instead of the directory.
tar -xvf ose.tar
ln -s config-linux.h config.h
ln -s platform_linux.GNU platform_macros.GNU
chmod +x bldsixax
problem while replacing a directory with the variable
There are some scripts made in the path root/c4/build and in that scripts we have used the path /home/cdot/c4. So i want to replace /home/cdot path with some variable. Rightnow I am acccessing my scripts from root/c4. I want to write a script in root so dat in the scripts, home/cdot path gets replaced with that variable. How can I do that?