All times are UTC - 6 hours




Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: Tue Sep 05, 2006 11:11 am 
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 )


Last edited by lugduweb on Tue Sep 05, 2006 12:16 pm, edited 1 time in total.

Top
  
 
 Post subject:
PostPosted: Tue Sep 05, 2006 11:43 am 
Offline


Mon Mar 27, 2006 12:16 pm

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


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 05, 2006 12:14 pm 
: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"...


Top
  
 
 Post subject:
PostPosted: Tue Sep 05, 2006 10:39 pm 
Offline


Sun May 08, 2005 8:46 pm

559

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


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 06, 2006 1:15 am 
Offline
Genesi


Fri Sep 24, 2004 1:39 am

1413
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 :)


Last edited by bbrv on Wed Sep 06, 2006 1:32 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 06, 2006 10:51 am 
Offline


Mon Mar 27, 2006 12:16 pm

79
geoffrey_charra wrote:
: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. :)


Top
 Profile  
 
PostPosted: Wed Sep 06, 2006 11:57 am 
Offline


Thu Feb 02, 2006 9:43 am

20

Cologne
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group