Lets say I have strings like this:
/somefolder/andsubfolder/my_first_text.txt
/somefolder/andsubfolder/my_second_text.txt
and I want to create a loop to echo
my_first_text
my_second_text
After some research I found out that the cut
command is not abled to do so. I think awk
might be an option but I did not fully understand how to get it working properly on this example... so any help would be very appreciated.