👤
Home Man
Search
Today's Posts
Register


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 04-06-2007
HI,
You can get the filename alone excluding the directory using following command
for file in `ls test_suite/*.args`
do
F_NAME=$(basename ${file})
done

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