Unix/Linux Go Back    

separating filename and extension

Shell Programming and Scripting

Kindly Note - This is a Single User Post by Forum Member Raghuram.P Regarding:
separating filename and extension.
Please Follow The Primary Link Above to View the Full Discussion.

Old Unix and Linux 04-06-2007   -   Original Discussion by lucaspewkas
Raghuram.P's Unix or Linux Image
Raghuram.P Raghuram.P is offline
Registered User
Join Date: Feb 2007
Last Activity: 4 September 2007, 2:03 AM EDT
Posts: 44
Thanks: 0
Thanked 1 Time in 1 Post
You can get the filename alone excluding the directory using following command
for file in `ls test_suite/*.args`
F_NAME=$(basename ${file})

The Following User Says Thank You to Raghuram.P For This Useful Post:
mohit_iitk (02-13-2012)