hi,
i have a directory at
Code:
/path/unix
with the following files
Code:
1.txt
2.txt
3.txt
4.txt
I want to make another file called
Code:
filenames.txt
at a different location called /path/home.
Hi All,
I copied an existing script so that I could make updates to it and test those updates.
In both scripts I set the path which is the exact same in both scripts as I copied from the old to the new script.
setting path is this command:
Code:
# Add the path required for EMC commands to run correctly
export PATH=$PATH://usr/bin:/etc:/usr/sbin:/usr/local/bin:/usr/symcli/bin:/usr/emc/sc
i want to write a C program to append a string to PATH Environment variable.
something like "export PATH=$PATH:$HOME/mylib"
i have C code like this
setenv("PATH", "$PATH:$HOME/mylib",1); //which does not work.
other work arround i thought was get PATH and HOME using getenv() and create a memory in heap then append them using strcat().
I might have to update PATH many times in my code: so th
I am new to Ubuntu (coming from Windows 7) and I am trying to add a directory to my system path and for some reason I can't get it to work.
I do know how we set the PATH variable-
Code:
export PATH=$JAVA_HOME/bin:$PATH
I'm trying to understand why we have written
Code:
:$PATH
in the end above statement. What is it's meaning?
Hi.
I'm trying to get the names of files from a log file, without the path and special characters.
I have a file that contains lines like this:
Code:
'/path/to/files/file00010000070874.EXT'
'/path/to/files/file00010000070875.EXT'
'/path/to/files/file00010000070876.EXT'
'/path/to/files/file00010000070877.EXT'
'/path/to/files/file00010000070878.EXT'
'/path/to/files/file00010000070879.EXT'
'/p
I used the command:
PATH=$PATH:/opt/lum/ls/os/linux/bin/;export PATH
in terminal to add that path to the path command, but every time I leave the terminal window and check it again with
echo $PATH
It is no longer in there.
Hi,
i'm trying to add my scripts directory to my path. I've done it before for my current session (though I cant remember how I did it...) but I wont to do it permanently. I did some research, and I should be looking for the .bash_profile file, but I cant seem to find it in my BT.
As far as I understand, the usual way to add a path to the PATH environment variable is by concatenating paths separated by the : character.