I have file wich has many lines inside
All lines that contain
file=/aaaaaaa/bbbbbbb/cccccc/dddddd.txt
it needs to be stripped to this format
file=/dddddd.txt
i am executing perl in bash somethin like this
perl -i -pe 'regex' /localpath/file.txt
In perl command above in 'regex' i would need command to do it, how to do it ?