News

Stack Overflow
stackoverflow.com > questions > 79/40/0254 > how-can-i-extract-the-base-name-of-a-directory-with-at-least-one-dot-in-its-name

How can I extract the base name of a directory with at least one dot in its name?

How can I extract the base name of a directory with at least one dot in its name?11+ mon, 2+ week ago   (94+ words) Assuming a POSIX path to a specific folder in the macOS filesystem: /root/Owners/J.F. Kennedy I would like to obtain J.F. Kennedy. I used takeFileName function to solve this problem, but I feel th... Assuming a POSIX path to a specific…...

Stack Overflow
stackoverflow.com > questions > 79/36/5707 > shell-script-to-take-windows-path-as-argument-to-change-directory

Shell script to take windows path as argument to change directory

Shell script to take windows path as argument to change directory11+ mon, 4+ week ago   (404+ words) I wrote a simple shell script to change path where folder path is provided in Windows format (it would be very handy to copy/paste path from windows and provide it to unix cd). Here is the script cdwin() { echo "args…...