I have a text file, where each line is a single string of the format
/home/usr1/284.txt
The whole file is like
/home/usr1/284.txt
/home/usr1/361.txt
What I want is to remove /home/usr1/ and keep the file name, e.g., 284.txt
How to do that using linux/unix command?
You could also use Perl, like so: