Daniel M. answered 06/03/19
Tutor
4.9
(100)
Award Winning Lead Software Engineer and College Instructor
Try the following:
#!/bin/bash
full="/one/two/three/four.txt"
name="${full##*/}"
base="${name%.*}"
echo ${base}