Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

aclput command

Status
Not open for further replies.

jseva

IS-IT--Management
Mar 26, 2001
26
US
How can I use a wildcard when issuing the aclput command?
For example, if I have file1, file1, file3, and I want to change the file privs using 'aclput', is there a way to enter ONE command for all 3 files instead of one at a time?

The way I do it now is to issue:
'aclput -i acldefs file1' and then
'aclput -i acldefs file2' and then
'aclput -i acldefs file3'

Please advise.


 
jseva,

You could try a using a simple for loop:

cd into the relevant directory:

for i in `ls`
do
aclput -i acldefs $i
done

That is my suggestion anyway.


PSD
IBM Certified Specialist - AIX V4.3 Systems Support
IBM Certified Specialist - AIX V4 HACMP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top