LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (May 2002, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Fri, 17 May 2002 12:33:51 -0700
Reply-To:     seeliger <seeliger@MERCURY.COR.EPA.GOV>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         seeliger <seeliger@MERCURY.COR.EPA.GOV>
Subject:      Re: OT: An Unix question
In-Reply-To:  <6300328FB7CFD511AACF0002A589357D024C835A@lajgrdexm04.agouron.com>
Content-Type: TEXT/PLAIN; charset=US-ASCII

On Fri, 17 May 2002, Huang, Ya wrote:

> Hi there, > > Dose anybody know how can I "chmod" the *.sas > files, under a specific subdirectory, > say 'prod'? 'prod' could be anywhere down from > the current, they are not necessary to be > on the same deep level.

I'll assume you've got a directory structure like this, with your *.sas files in each: a/b1/c1/prod/ a/b2/c2/d2/prod/ a/b3/prod/ a/b4/c4/d4/e4/f4/prod/ ...

Try this from whatever path corresponds to a/ above:

find . -path '*/prod/*.sas' -print | xargs -i -t chmod 744 {}

where you can change 744 to anything you want, eh. This is what I really like about unix -- it's entirely intuitive once you've memorized 350 commands.

cur

-- Curt Seeliger, Data Ranger CSC, EPA/WED contractor 541/754-4638 seeliger.curt@epa.gov


Back to: Top of message | Previous page | Main SAS-L page