![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Adding Multiple Lines to Multiple Files | dayinthelife | Shell Programming and Scripting | 2 | 06-04-2008 08:50 AM |
| Splitting input files into multiple files through AWK command | arund_01 | Shell Programming and Scripting | 3 | 05-13-2008 06:17 AM |
| Multiple search in multiple files | maxvirrozeito | Shell Programming and Scripting | 2 | 12-13-2007 10:32 AM |
| when I try to run rm on multiple files I have problem to delete files with space | umen | UNIX for Dummies Questions & Answers | 1 | 09-20-2005 12:20 AM |
| Searching multiple files with multiple expressions | Anahka | Shell Programming and Scripting | 6 | 01-07-2004 03:24 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
CHOWN Multiple Files
We have a test and training directory. The test is a copy of training. We need to change the ownership and group for a list of specific files from the training directory. Is there a way to feed the CHOWN command the list of files we need changed? We are performing the CHOWN as root. Thanks in Advance.
Last edited by Teganii; 08-16-2005 at 09:01 AM. |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
Code:
chown -R user:group training |
|
#3
|
|||
|
|||
|
I guess I'm not making myself too clear. The specific files in the training directory have different owners. I have created a list of the files in the training directory that I need to have the ownership changed in the test directory. It's getting that list of files into CHOWN that I'm having the issue with. I tried chown user:group < file_list with no luck. I'm just getting into the UNIX so my learning curve has been VERY steep.
|
|
#4
|
|||
|
|||
|
Maybye something more like
Code:
chown user:group `cat list_of_files` |
|
#5
|
|||
|
|||
|
Worked perfectly for me.
|
|||
| Google The UNIX and Linux Forums |