This script chops off the last dir off of the PATH (still need to assign back to PATH)
echo $PATH | gawk -F':' '{
for(i=1; i<NF; i++) {
if(i) {
printf (":");
}
printf("%s", $i);
}
}'
This script chops off the last dir off of the PATH (still need to assign back to PATH)
echo $PATH | gawk -F':' '{
for(i=1; i<NF; i++) {
if(i) {
printf (":");
}
printf("%s", $i);
}
}'