LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 12-03-2004, 01:50 PM   #1
geomonap
LQ Newbie
 
Registered: Dec 2004
Posts: 17

Rep: Reputation: 0
Script to change names of files in a directory


Hi guys;
I am fairly new to shell scripting.
How can I change the names of all files starting with 'S' under /etc/rc2.d to starting with 's' except for certain files..say
S20sysetup and S01MOUNTFSYS.

i want to automate the process of stopping uneeded daemons from starting during boottime.

Thanks in advance.

Ge
 
Old 12-03-2004, 02:01 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
Welcome to LQ.

I'm not sure if you realise or not but the best tool to use would be "chkconfig" as it is designed for managing such services.
 
Old 12-03-2004, 03:04 PM   #3
geomonap
LQ Newbie
 
Registered: Dec 2004
Posts: 17

Original Poster
Rep: Reputation: 0
Thanks, but 'chkconfig' doesn't exist on solaris.

-GR
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change directory in a shell script? jdupre Linux - Newbie 11 01-21-2012 08:01 AM
script to change multiple filenames in a directory jeffreybluml Linux - Newbie 8 12-06-2006 01:46 AM
CD Burner names all files and directory ??? danny_beta_read Linux - Hardware 11 03-04-2004 06:24 PM
script to change directory trout21 Linux - Newbie 9 02-17-2004 12:49 PM
How can i change names of multiple files? phz Linux - General 5 11-15-2003 10:06 AM


All times are GMT -5. The time now is 04:36 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration