and execute the above line in command line and later if I type echo $PATH, I could see the path added. But after restarting the system I couldn't see it any more. But putting the system to sleep and then starting again, I could still see it. How to resolve the issue?
I am writing a shell script in which I have to separate the file name and file path from a complete file path. For example /home/loneranger/Documents/test/file.dat is the complete path. I want to separate name and Path and put them in variables. So far I am able to separate file name by using basename command.