Get workbook full path with filename =LEFT(CELL("filename"),FIND("#",CELL("filename"))-1) Explanation If you want to get the workbook filename and path, you can do so with a formula that uses the LEFT and the FIND function. The CELL("filename") function is used to get the full file name and path along with current sheet…
The first command strips down the full path filename to the filename only ising the basename command. filename=$(basename $filenamefullpath) Afterwards you can see how to extract the file extension from the filename. There is no need to do this after issuing the above command since this command will just remove…