Skip to content
Advertisement

Tag: basename

Shell Script to extract only file name

I have file format like this (publishfile.txt) I just want to extract the name OMEGA****, sample, sample(1) How can I do that I have used basename in my code but it doesn’t work in for loop. Here is my sample code But this code also doesn’t wor when used outside for loop Answer This simply says that the delimiter is

Advertisement