Bigbruin.com
Home :: Reviews & Articles ::
Forum :: Info :: :: Facebook :: Youtube :: RSS Feed
Search  :: Register :: Log in
View Single Post  Topic: Batch copy and edit application? 
Author Message
Blue|Fusion
Rated XXX


PostPosted: Thu, 09 Aug 2007 14:39:56    Post Subject: Reply with quote

1. You can make a script to use rsync on all of the directories. Something like this:

Code:

dir_list="/home/dir1
/home/dir2
/home/dir3"

for dir in $dir_list; do
   rsync -av /root/new.file $dir
done


2. sed. After you finally get a working sed command that does what you want, it might have been faster doing it all by hand depending how many files there are.
_________________
5 home-built PCs, ASUS A6Jc Laptop, and a PowerEdge 2650 - all running Gentoo. Now if only I can get a car and plane to run it. Take a look at my Gallery!
View user's profile Send private message

Contact Us :: On Facebook :: On Youtube :: Newsletter :: RSS Feed :: FAQ :: Links :: Sponsors :: Privacy Policy
Copyright © 2000 - 2023 Bigbruin.com - All rights reserved