From owner-freebsd-questions@FreeBSD.ORG Mon Nov 8 06:33:43 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4DA80106566B for ; Mon, 8 Nov 2010 06:33:43 +0000 (UTC) (envelope-from y.emailalerts@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id D8B898FC16 for ; Mon, 8 Nov 2010 06:33:42 +0000 (UTC) Received: by wyb34 with SMTP id 34so3082350wyb.13 for ; Sun, 07 Nov 2010 22:33:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:cc:content-type; bh=vfSwHc5+iXLHT8BFtSQV6uLB83U4cyAP13NtxouGQcE=; b=XfOby2oVx1SZ6Vn4u1e2rbdxnFIdvqbLZ/l418UffOXyCX5Zd4Ri6nNBIVTbycSDvA 5ntXx+x+jLBsN9aLNZ9UgAmnDw2roSYBiZmcUOXSMyVxaiSmzi1iQUuVB0XrLOeIfp4j uIzr+bPw0uYNKYgCRH70W8PBeffQ/XnxjGgMY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:cc:content-type; b=fNxyHRIzflnowjMykEYukIvSvN8A2uj2sNWKel/1cMlvAvS+slJ+w9JECs2Rsqiv5Y 8SUxMNP6oGvJR7elj0T0uvI11g0oer2m3CDE4q3QRDOTsySavOvCmRAJPBO+Fo8n4A/h ii9vY8/5rYOcmJQJG9Sd/dCvQxeVJP6e8SOB4= MIME-Version: 1.0 Received: by 10.216.19.134 with SMTP id n6mr6574747wen.9.1289196620174; Sun, 07 Nov 2010 22:10:20 -0800 (PST) Received: by 10.216.21.15 with HTTP; Sun, 7 Nov 2010 22:10:20 -0800 (PST) Date: Mon, 8 Nov 2010 11:40:20 +0530 Message-ID: From: yoganjaneyulu kasetti To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: "y.emailalerts" Subject: removing files X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Nov 2010 06:33:43 -0000 hi, 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. /student/sweety/gaussiandata/*1249624064640*/input /student/sweety/gaussiandata/*1261202703914*/input /student/sweety/gaussiandata/*1263357080155*/input /student/sweety/gaussiandata/*1289106407303*/input thank you. regards, sweety.