Timeline for Extract file name from path in awk program
Current License: CC BY-SA 3.0
5 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jan 7, 2018 at 9:28 | comment | added | shiri | If you need code that will work easily within an existing awk script without introducing a function, you should use: n = split(FILENAME, a, "/"); basename=a[n];. Don't use sub as that will actually change the FILENAME variable (which is a non-issue with the function since awk uses call by value). | |
| Jun 14, 2016 at 15:43 | history | edited | Stéphane Chazelas | CC BY-SA 3.0 | added 382 characters in body |
| Jun 3, 2014 at 9:15 | history | edited | Stéphane Chazelas | CC BY-SA 3.0 | added 295 characters in body |
| Jun 3, 2014 at 8:43 | vote | accept | Aashu | ||
| Jun 3, 2014 at 8:35 | history | answered | Stéphane Chazelas | CC BY-SA 3.0 |