How To Get The Script Path Name in CSH/TCSH

Here a C shell snippet get_script_path.csh to do the trick.

We have two ways to run the script, to illustrate why we need to handle differently, we print out the internal strings. 1. Source the script file


%d bloggers like this: