I have an environment variable which contains:
C:\\Users\\u49100\\OneDrive\\Documents\\CA20-4021_BUILD_1.0.876\\Name\\sc_app
I want to modify the environment variable in a script stripping:
C:\\Users\\u49100\\
So the result can be assigned to a new variable:
OneDrive\\Documents\\CA20-4021_BUILD_1.0.876\\Name\\sc_app
Is there a way to do something like the following:
NEW_VARIABLE=$FULL_DIR - $DIR_PREFIX
Where $FULL_DIR would contain the full directory and $DIR_PREFIX would contain the prefix at the start of the directory to remove.