Timeline for How to get the filename part of a path from a shell variable
Current License: CC BY-SA 4.0
7 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Sep 24, 2018 at 17:33 | history | edited | RobertL | CC BY-SA 4.0 | change "environment variable" to the more accurate "shell variable", remove excess verbage, add tags |
| Sep 24, 2018 at 11:01 | history | edited | Jeff Schaller♦ | CC BY-SA 4.0 | edited body; edited tags |
| Sep 24, 2018 at 8:16 | vote | accept | Tankman六四 | ||
| Sep 24, 2018 at 7:14 | answer | added | elig | timeline score: 0 | |
| Sep 24, 2018 at 5:05 | comment | added | dave_thompson_085 | For the example, if you didn't need the dot, just ln -s "$i" automatically uses the basename of the target as the link name. Also a nit: that's a shell variable (or shell parameter) but not an environment variable because you didn't export it. Within the shell they both work, but if you want to pass information to another program this difference matters. | |
| Sep 24, 2018 at 3:07 | answer | added | RobertL | timeline score: 6 | |
| Sep 24, 2018 at 2:58 | history | asked | Tankman六四 | CC BY-SA 4.0 |