Questions tagged [basename]
51 questions
0
votes
1 answer
Trouble using Find and Prune Command to filter out file name in GitLab runner
So, this is strange and I'm not sure what is causing it.. (I'm very new to cli stuff)
I have a directory ==> SomeDirectory
I have two jar files ==> original-processor.jar and processor.jar
I am looking to just return processor.jar and set it…
user8072194
0
votes
1 answer
Permission denied error using sed to change file name
I'm trying to take the filename of each file in a directory and 'rename' it to create a respective output file when running through a program. When running the script I get the error Permission denied, for the line that is meant to be doing the…

sian
- 77
- 7
0
votes
1 answer
makefile filename manipulations
I'm trying to extract the 6 from a file called ~/Downloads/GGG/some_file.6.txt in makefile. I got pretty close, and managed to get .6, but I can't seem to get rid of the dot . and get just the 6. Here is my makefile:
FILE =…

OrenIshShalom
- 5,974
- 9
- 37
- 87
0
votes
2 answers
How to get the basename when it gets truncated with period in path?
Am I missing a trick here?
Dim fso
Set fso = WScript.CreateObject("Scripting.FileSystemObject")
WScript.Echo fso.GetBaseName("D:\temp\1. Some Folder")
WScript.Echo fso.GetBaseName("D:\temp\Some Other Folder Without A Dot")
WScript.Echo…

Ghoul Fool
- 6,249
- 10
- 67
- 125
-1
votes
1 answer
PHP get the basename(__DIR__) of the parent and not the directory of the included file if used inside an include
My structure is as follows
public_html/includes/ contains
includeMe.php
the php inside includeMe.php is
public_html/stuff/ contains
myPage.php
the php inside myPage.php is

Glen Keybit
- 296
- 2
- 15
-4
votes
2 answers
Powershell to take a filename in folder and search for it in other folders
I am looking to use powershell to do following:
Use filename (excluding extension) from one folder (Folder1), search that filename exists in other folders(Folder2, Folder3)
If file exists in Folder2 or Folder3, delete file from Folder1.
If file…

LeeJ
- 1
- 2