Power Developer
https://powerdeveloper.org/forums/

Pegasos Book Founder hard at work!
https://powerdeveloper.org/forums/viewtopic.php?f=8&t=771
Page 1 of 1

Author:  lugduweb [ Tue Sep 05, 2006 11:11 am ]
Post subject:  Pegasos Book Founder hard at work!

Here is a home made script to batch rename config files after an emerge because some time you can have almost 100 files to rename by hand !
Code:
for file in `find /etc -iname '._cfg????_*'`;
do mv $file `echo $file | sed 's/._cfg0000_//'`;
done
I guess it could be enhanced or also could be simplier.
It's quite helpfull anyway :-)

Use it at your own risks (delete cfg files that you don't want before doing this )

Author:  nixnut [ Tue Sep 05, 2006 11:43 am ]
Post subject: 

rename by hand???
Are you not aware of etc-update, dispatch-config and other tools for checking, diffing, merging (and backing up) config files?

Author:  lugduweb [ Tue Sep 05, 2006 12:14 pm ]
Post subject: 

:oops: :oops:

If only I could be a small mouse :?
:oops: :oops:

I must recognize that I wasn't using etc-update because I didn't know it well...
It seems powerfull.
Well my script is not very usefull then :?
I just wanted to help, and now I have shame !

Sorry Gysbert :-/
I've renamed the topic to "Useless script to batch rename config files after emerge"...

Author:  SoundSquare [ Tue Sep 05, 2006 10:39 pm ]
Post subject: 

don't fret Geoffrey, the effort is always appreciated !

Author:  bbrv [ Wed Sep 06, 2006 1:15 am ]
Post subject: 

Hi Geoffrey, we re-named the thread again.

Many, many people appreciate your work.

It is better to err on the side of daring than the side of caution.
Alvin Toffler

Just keep daring to do your best! No one here will be upset with you for long. Keep up the good work. Thanks! :)

R&B :)

Author:  nixnut [ Wed Sep 06, 2006 10:51 am ]
Post subject: 

Quote:
:oops: :oops:

If only I could be a small mouse :?
:oops: :oops:

I must recognize that I wasn't using etc-update because I didn't know it well...
It seems powerfull.
Well my script is not very usefull then :?
I just wanted to help, and now I have shame !
:shock:
Hey, don't worry about it.
This is how we learn from each other. :)

Author:  heinrich.lehmann [ Wed Sep 06, 2006 11:57 am ]
Post subject:  Keep up the good work ...

Hey Geoffrey,

don't worry be happy !

There's no bad thing in trying to help or share.

Let me tell you some things ...

10 years ago I was attending a course on C/C++. Most of the people in this class did not know anything about programming.
So the "teacher" decided to start with a 6 weeks crash-course in HTML to demonstrate the basics of programming.
On the 3rd or 4th day the teacher was walking around while we were programming something. He stopped behind me and watched the screen for some minutes. After this he said:"Herr Lehmann you are a very talented young man. At least at programming HTML".
So now guess what my answer was ? My answer was :"It is possible, but no one will need this crap in 1 or 2 years. The internet will never be of real use !"

What i wanted to tell you with this ? I can not really remember but your scripts is fine for me, because i hate etc-update. 8)

God bye for now,
H.

Page 1 of 1 All times are UTC-06:00
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/