Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 12-03-2004, 01:50 PM   #1
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.

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

Rep: Reputation: 66
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
LQ Newbie
Registered: Dec 2004
Posts: 17

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



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

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change directory in a shell script? jdupre Linux - Newbie 13 06-25-2015 05:03 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 > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:30 AM.

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