Do you know some method to get the filename with the complete full path name?
For example, i have:
/home/myhome/myfile
And i want to get
myfile
Regards!
Do you know some method to get the filename with the complete full path name?
For example, i have:
/home/myhome/myfile
And i want to get
myfile
Regards!
basename /home/myhome/myfile
output
myfile
Use the basename command
basename /home/myhome/myfile
Fantastic, thanks!