jerrymc at msu.edu
Mon Nov 8 15:49:16 UTC 2010
On Mon, Nov 08, 2010 at 11:40:20AM +0530, yoganjaneyulu kasetti wrote:
> I have a problem for deleting files using script........please some one can
> guide me for the same.
> I have some files with the extension of ".chk" extension along with the
> extension of ".log" and ".gjf" extension in the folder called different *input
> folders. *I wanted to delete the ".chk" file extension having files. If i go
> to individual input folder manually i can delete the file with *rm* command
> line by but i would like to delete all the ".chk" files extension files at a
> time through scripting rather than manual. So please some one help me for
> the same.
Your examples given here don't seem to match quite what you are asking
as far as I see. Maybe I am looking at it wrong.
But, anyway, can't you just the -R switch on the rm?
rm -R *.chk
rm -R *.log
rm -R *.gjk
Or am I missing something.
> thank you.
> freebsd-questions at freebsd.org mailing list
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
More information about the freebsd-questions