Thanks pramod. From: Pramod [via R] [mailto:ml-node+s789695n4640600h38@n4.nabble.com] Sent: Friday, August 17, 2012 5:24 PM To: Akkara, Antony (GE Energy, Non-GE) Subject: Re: Get the filename from the given path x <- substr(FPath,13,nchar(FPath)) should give you the desired output. ________________________________ If you reply to this email, your message will be added to the discussion below: http://r.789695.n4.nabble.com/Get-the-filename-from-the-given-path-tp464 0578p4640600.html To unsubscribe from Get the filename from the given path, click here . NAML -- View this message in context: http://r.789695.n4.nabble.com/Get-the-filename-from-the-given-path-tp4640578p4640601.html Sent from the R help mailing list archive at Nabble.com. [[alternative HTML version deleted]]