unix shell script - extract file name

Posted by arav on Stack Overflow See other posts from Stack Overflow or by arav
Published on 2010-03-29T06:03:39Z Indexed on 2010/03/29 6:13 UTC
Read the original article Hit count: 597

I have a variable which has the directory path along with file name. I want to extract the filename alone from the unix directory path and store it in a variable

fspec="/exp/home1/abc.txt"

© Stack Overflow or respective owner

Related posts about unix

Related posts about unix-programming