LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Script to change names of files in a directory (https://www.linuxquestions.org/questions/linux-general-1/script-to-change-names-of-files-in-a-directory-262210/)

geomonap 12-03-2004 01:50 PM

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

david_ross 12-03-2004 02:01 PM

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.

geomonap 12-03-2004 03:04 PM

Thanks, but 'chkconfig' doesn't exist on solaris.

-GR


All times are GMT -5. The time now is 02:35 PM.